Skip to content

Instantly share code, notes, and snippets.

@matsuda
Last active August 31, 2022 13:46
Show Gist options
  • Save matsuda/479ba14289f5700878f6b819902154d3 to your computer and use it in GitHub Desktop.
Save matsuda/479ba14289f5700878f6b819902154d3 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