Skip to content

Instantly share code, notes, and snippets.

@mataprasad
Last active October 21, 2018 17:20
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 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