Last active
December 12, 2015 09:29
-
-
Save danshultz/4752086 to your computer and use it in GitHub Desktop.
Git Tricks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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