Skip to content

Instantly share code, notes, and snippets.

@yungztrunks
Created September 23, 2024 08:47
Show Gist options
  • Save yungztrunks/4ebb5360078854616aa7ef65a00624b5 to your computer and use it in GitHub Desktop.
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
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