Skip to content

Instantly share code, notes, and snippets.

@felipekm
Created April 10, 2018 23:43
Show Gist options
  • Save felipekm/74124d7fbc0623ff050718dad25eaf1e to your computer and use it in GitHub Desktop.
Save felipekm/74124d7fbc0623ff050718dad25eaf1e to your computer and use it in GitHub Desktop.
GIT - how to revert to specific commit
git revert --no-commit {SHA_COMMIT}..HEAD && git add --all && git commit -m "revert"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment