Git Commands
Git Commands
name "username"
git add .
interview
from remote repo to local repo
git clone --is used to create local repo,it is an one time activity
git branch
=================================
HARD reset
git reset --hard HEAD~1
git reset --soft file
========================================================================
git fetch vs git pull ---->imp
git fetch pull recent updates but will not change local repo/working dir
RESET:
===================================================
git reset
revert change from stagging area to working area
===================================================
git reset --soft HEAD~1