Last Updated: February 25, 2016
·
800
· nicolaslazartekaqui

Git - Undo the last commit

Assuming you made ​​a wrong commit and want to undo it

$ git commit ...

you can use reset to undo last commit

$ git reset --soft HEAD~

done, now you can fix the changes and commit again.