Skip to content

Instantly share code, notes, and snippets.

@jakubriedl
Last active October 7, 2017 01:36
Show Gist options
  • Save jakubriedl/799a58cf6266244e72e1ac1a9a1aa8da to your computer and use it in GitHub Desktop.
Save jakubriedl/799a58cf6266244e72e1ac1a9a1aa8da to your computer and use it in GitHub Desktop.
Git lines per author
# Authors
git ls-files | grep "yarn.lock" -v | grep "package-lock.json" -v | while read f; do git blame --line-porcelain $f | grep '^author '; done | sort -f | uniq -ic | sort -n
# Size of repository
git ls-files | grep "yarn.lock" -v | grep "package-lock.json" -v | while read f; do git blame --line-porcelain $f | grep '^author '; done | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment