Skip to content

Instantly share code, notes, and snippets.

@imRohan
Last active April 27, 2017 17:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imRohan/538f4e627a665b60a18a480427d9bede to your computer and use it in GitHub Desktop.
Save imRohan/538f4e627a665b60a18a480427d9bede to your computer and use it in GitHub Desktop.
Git Undo
How to undo published commits
git reset (sha)
git checkout (all files that need to be undone)
git commit -am (message for reset)
git push -f origin (branch name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment