How can I search my git logs to see which files have had the most activity?
Assuming the range of revisions you want to select is
, the command:
git log --format=%n --name-only |sort|uniq -c|tail -n +2
will output for each file of your repository the number of occurences in commit diffs, ie number of changes, including file creation as a change. Keep
empty to get statistics from initial commit to your branch HEAD
.