Created
September 13, 2013 14:47
-
-
Save mirrec/6551698 to your computer and use it in GitHub Desktop.
find hash of commit cat contains given FILE_NAME in bash
This file contains 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
git rev-list --all | while read HASH; do echo $HASH; git show --pretty="format:" --name-only $HASH | grep FILE_NAME; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment