Created
September 23, 2024 08:47
-
-
Save yungztrunks/4ebb5360078854616aa7ef65a00624b5 to your computer and use it in GitHub Desktop.
search for specific strings across the entire git repo history using git commands
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 | xargs -n 1 git grep 'rashford' | |
# the above now searchs through all commits in every file for the string "rashford" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment