Created
March 24, 2017 20:00
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
gitwords --user@email.com