Skip to content

Instantly share code, notes, and snippets.

@mataprasad
Last active October 21, 2018 17:20
Show Gist options
  • Save mataprasad/a50d257b4eaba4191c96bf7d4ad72650 to your computer and use it in GitHub Desktop.
Save mataprasad/a50d257b4eaba4191c96bf7d4ad72650 to your computer and use it in GitHub Desktop.
1) Revert to specific commit
git revert --no-commit 0766c053..HEAD
git commit
-----------------------------------------------------------
2) Show diff intow commits
git diff 012345..abcdef
-----------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment