Skip to content

Instantly share code, notes, and snippets.

@geekforbrains
Created December 20, 2016 17:01
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 geekforbrains/cfa8a2bef1a80d189825e2eecb3a5612 to your computer and use it in GitHub Desktop.
Save geekforbrains/cfa8a2bef1a80d189825e2eecb3a5612 to your computer and use it in GitHub Desktop.
How to properly rollback a commit in Git
git revert --no-commit <sha>..HEAD
git commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment