Finding most changed files in Git Ask Question

Finding most changed files in Git Ask Question

How can I show files in Git which change most often?

ベストアンサー1

You could do something like the following:

git log --pretty=format: --name-only | sort | uniq -c | sort -rg | head -10

The log just outputs the names of the files that have been changed in each commit, while the rest of it just sorts and outputs the top 10 most frequently appearing filenames.

おすすめ記事