Desfazer o compromisso local
$ git reset --soft HEAD~1
Inexpensive Ibex
$ git reset --soft HEAD~1
$ git reset --hard HEAD~1
git reset HEAD~1
If your commits are only LOCAL,
you can git reset --hard origin/<branch_name>
to move back to where the origin is.