git reset --hard — what it does
The command:
git reset --hard <target>
moves your current branch’s HEAD to <target>
and resets both your staging area and working directory to match it.
Learning new things!
git reset --hard — what it doesThe command:
git reset --hard <target>
moves your current branch’s HEAD to <target>
and resets both your staging area and working directory to match it.