gitSTTP
How to undo the last git commit
git reset HEAD~1
Where 1
is the number of commits you want to undo.
To see a list of recent git actions, use:
git reflog
git reset HEAD~1
Where 1
is the number of commits you want to undo.
To see a list of recent git actions, use:
git reflog