git checkout HEAD~1
This will move your current HEAD to one revision earlier.
git checkout <sha>
This will move your current HEAD to the given revision. Use git log or gitk to find the revision you’re looking for.
git checkout HEAD~1
This will move your current HEAD to one revision earlier.
git checkout <sha>
This will move your current HEAD to the given revision. Use git log or gitk to find the revision you’re looking for.