Last active
December 28, 2020 13:10
-
-
Save gonaumov/802e974c55b0d9794207caa3a20ea0f6 to your computer and use it in GitHub Desktop.
How to get report for developers commit it a repository using Linux command line
This file contains hidden or 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
#!/usr/bin/env bash | |
git log | egrep -o "<[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}>" | sort | uniq -c | sort -nk1 -r | awk 'BEGIN {printf "Commits reports from developers:\n"; total=0; } { total+=$1; print } END { printf " " total " total commits\n" }' > report.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I love Linux command line. Here is an example how to get report for developers commits in a Git repository.