Skip to content

Instantly share code, notes, and snippets.

@dhonx
Created September 29, 2019 01:37
Show Gist options
  • Save dhonx/5e8bfb13c3f8da8c9eea5f819d701a95 to your computer and use it in GitHub Desktop.
Save dhonx/5e8bfb13c3f8da8c9eea5f819d701a95 to your computer and use it in GitHub Desktop.
Revert Git Commit
# Checkout the desired branch
git checkout <branch>
# Undo the desired commit
git revert <commit>
# Update the remote with the undo of the code
git push origin <branch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment