Skip to content

Instantly share code, notes, and snippets.

Last active April 27, 2017 17:49
What would you like to do?
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