Skip to content

Instantly share code, notes, and snippets.

@danshultz
Last active December 12, 2015 09:29
Show Gist options
  • Save danshultz/4752086 to your computer and use it in GitHub Desktop.
Save danshultz/4752086 to your computer and use it in GitHub Desktop.
Git Tricks
# grep across all commits
git grep <pattern> $(git rev-list --all)
# find out which branch(es) contains said commit
git branch -r --contains <sha1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment