Skip to content

Instantly share code, notes, and snippets.

@DanielCoulbourne
Created March 24, 2017 20:00
Show Gist options
  • Save DanielCoulbourne/88773a6fafb48646e9b72dfb0294dc34 to your computer and use it in GitHub Desktop.
Save DanielCoulbourne/88773a6fafb48646e9b72dfb0294dc34 to your computer and use it in GitHub Desktop.
Count the number of usages of a given first word in your git commits.
#!/bin/bash
email="$email"
echo "Most used first words in this repo:";
echo $(git log --format=%s --author=$email | cut -d' ' -f1) | tr ' ' '\n' | sort | uniq -c | sort -r
@DanielCoulbourne
Copy link
Author

Usage: gitwords --user@email.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment