Last active
August 31, 2022 13:46
-
-
Save matsuda/479ba14289f5700878f6b819902154d3 to your computer and use it in GitHub Desktop.
git tips
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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