Last active
May 10, 2021 17:51
-
-
Save RackReaver/76ce1520ffcbe258b6cade05174fd5aa to your computer and use it in GitHub Desktop.
bash:script: count code lines (git)
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
# While inside of git repository this command will output lines of code written by each author. | |
git ls-files | while read f; do git blame -w --line-porcelain -- "$f" | grep -I '^author '; done | sort -f | uniq -ic | sort -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment