Skip to content

Instantly share code, notes, and snippets.

@sbhmajd
Forked from matsuda/git-commit-count.sh
Created August 31, 2022 13:46
Show Gist options
  • Save sbhmajd/775da9b63722e07621b031f9389f0e22 to your computer and use it in GitHub Desktop.
Save sbhmajd/775da9b63722e07621b031f9389f0e22 to your computer and use it in GitHub Desktop.
git tips
#!/bin/sh
# ファイルの1年間のコミット数
git ls-files |
while read file ; do
commits=`git log --since=1.year --no-merges --oneline -- $file | wc -l`;
echo "$commits - $file";
done | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment