gitSTTP

How to undo the last git commit

git reset HEAD~1

Where 1 is the number of commits you want to undo.