Skip to content

Instantly share code, notes, and snippets.

@rendfall
Created April 14, 2021 10:05
Show Gist options
  • Select an option

  • Save rendfall/c558488719c1207f1dada86283638b1d to your computer and use it in GitHub Desktop.

Select an option

Save rendfall/c558488719c1207f1dada86283638b1d to your computer and use it in GitHub Desktop.
Grep repository through all revisions
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