Skip to content

Instantly share code, notes, and snippets.

@shreeshkatyayan
Forked from amitchhajer/Count Code lines
Last active August 6, 2018 09:47
Show Gist options
  • Save shreeshkatyayan/33cbefedde1e43f6ac2d3d8adde60878 to your computer and use it in GitHub Desktop.
Save shreeshkatyayan/33cbefedde1e43f6ac2d3d8adde60878 to your computer and use it in GitHub Desktop.
Count number of code lines in git repository per user
git ls-files | while read f; do git blame -w -M -C -C --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