Skip to content

Instantly share code, notes, and snippets.

@gseok
Forked from amitchhajer/Count Code lines
Created November 24, 2020 07:55
Show Gist options
  • Save gseok/96a5b596647d95e403217644832bd221 to your computer and use it in GitHub Desktop.
Save gseok/96a5b596647d95e403217644832bd221 to your computer and use it in GitHub Desktop.
Count number of code lines in git repository per user
git ls-files -z | xargs -0n1 git blame -w | perl -n -e '/^.*\((.*?)\s*[\d]{4}/; print $1,"\n"' | sort -f | uniq -c | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment