Created
April 14, 2021 10:05
-
-
Save rendfall/c558488719c1207f1dada86283638b1d to your computer and use it in GitHub Desktop.
Grep repository through all revisions
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
git rev-list --all | ( | |
while read revision; do | |
git grep -F 'phrase' $revision | |
done | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment