Skip to content

Instantly share code, notes, and snippets.

@amitchhajer
Created January 5, 2013 11:08
Show Gist options
  • Save amitchhajer/4461043 to your computer and use it in GitHub Desktop.
Save amitchhajer/4461043 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
@nfx
Copy link

nfx commented Oct 8, 2023

See https://github.com/casperdcl/git-fame

this is exactly what i was looking for :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment