The Git command to get a list of file names and the number of times each has been updated.
git log --pretty='' --name-only | sort | uniq -c | sort -n
The explanation for each separate part of the command:
log
: show commit logs--pretty=''
: ‘pretty print’ the log by showing no information--name-only
: only show the name of the files that were changed without any diff information| sort
: sort all file names in alphabetical order| uniq -c
: report repeated lines with a count| sort -n
: sort based on numerical value