Skip to content

Instantly share code, notes, and snippets.

@mtigas
Created May 4, 2012 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtigas/2597650 to your computer and use it in GitHub Desktop.
Save mtigas/2597650 to your computer and use it in GitHub Desktop.
"git log grepping" for the number of commits that contain certain words.
$ git log --grep="fuck" --format=oneline -i | wc -l
8
$ git log --grep="shit" --format=oneline -i | wc -l
3
$ git log --grep="derp" --format=oneline -i | wc -l
24
$ git log --grep=" ie " --format=oneline -i | wc -l
44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment