Skip to content

Instantly share code, notes, and snippets.

@frosforever
Created April 3, 2015 16:16
Show Gist options
  • Save frosforever/892a6d03f204ad1f4595 to your computer and use it in GitHub Desktop.
Save frosforever/892a6d03f204ad1f4595 to your computer and use it in GitHub Desktop.
git grep on directory with multiple repose
for i in *; do ( cd $i; git grep foo HEAD ); done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment