leaderboard of who wrote the most lines of code in a git repo
git ls-tree --name-only -z -r HEAD | xargs -0 -n1 git blame --line-porcelain | grep "^author " | sort | uniq -c | sort -nr
the below can be used to filter by file extension
git ls-tree --name-only -z -r HEAD|egrep -z -Z -E '\.(cc|h|cpp|hpp|c|txt)$' \ |xargs -0 -n1 git blame --line-porcelain | grep "^author " | sort | uniq -c | sort -nr
this command searches through all commits in every file to find the string "weshford"
git rev-list --all | xargs -n 1 git grep 'weshford'