Skip to content

Instantly share code, notes, and snippets.

@marcieltorres
Last active May 27, 2018 16:11
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 marcieltorres/23f321552fa404d69415b89354cf641e to your computer and use it in GitHub Desktop.
Save marcieltorres/23f321552fa404d69415b89354cf641e to your computer and use it in GitHub Desktop.
git revert to commit
git reset <commit id>
git reset --soft HEAD@{1}
git commit -m "Revert to <commit id>"
git reset --hard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment