# git: checkout to previous commit git checkout HEAD~X # x number of commits to go back # Go back one commit: git checkout HEAD~1