git deshacer última confirmación
$ git reset --soft HEAD~1
revertir la última confirmación en git
git reset --soft HEAD~1
deshacer la última confirmación
$ git reset --soft HEAD~1
git revierte todos los commits a commits permeables
git revert --no-commit <commithash>..HEAD #revert changes in range of commits from head to back to that commit hash
deshacer confirmación más reciente
$ git commit -m "some comment"
$ git reset HEAD~
<< edit files as necessary >>
$ git add ...
$ git commit -c ORIG_HEAD
deshacer la última confirmación
$ git reset --hard HEAD~1