Skip to content

Instantly share code, notes, and snippets.

@keolo
Created April 2, 2012 20:31
Show Gist options
  • Save keolo/2287026 to your computer and use it in GitHub Desktop.
Save keolo/2287026 to your computer and use it in GitHub Desktop.
Git cheat sheet

Show commits and diffs where foo_bar was introduced or removed from the code

git log --oneline -S'foo_bar' -p

Get list of modified files between two changesets

git diff --name-status <SHA1> <SHA2>

git show  --name-only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment