git reset 56e05fced #resets index to former commit; replace '56e05fced' with your commit code git reset --soft HEAD@{1} #moves pointer back to previous HEAD git commit -m "Revert to 56e05fced" git reset --hard #updates working copy to reflect the new commit