collection of some of useful links
i don't know
git rev-list --all | xargs -n 1 git grep 'rashford' | |
# the above now searchs through all commits in every file for the string "rashford" |
PURPLE = "\033[95m" | |
CYAN = "\033[96m" | |
DARKCYAN = "\033[36m" | |
BLUE = "\033[94m" | |
GREEN = "\033[92m" | |
YELLOW = "\033[93m" | |
RED = "\033[91m" | |
BOLD = "\033[1m" | |
UNDERLINE = "\033[4m" | |
END = "\033[0m" |
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