Skip to main content

GitHub Panic Moves

Undo last push

  1. See last commits:
git log

or (I prefer this one)

git log --oneline

Get the hash from the commit I want to undo

  1. Undo commit with hash

Create new commit with Revert as message in the beginning

git revert <commit hash>

Undo last commit