Number of lines in a repo:
git ls-files | xargs wc -l
Breakdown of lines in a repo by contributor:
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
Number of lines in a repo:
git ls-files | xargs wc -l
Breakdown of lines in a repo by contributor:
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