Bash

Most-Modified Files in Repo

admin by @admin ADMIN
5d ago
May 31, 2026
Public
0 0 up · 0 down Sign in to vote
Find the hottest files in a git history — useful for spotting hotspots that need refactoring or extra test coverage.
Bash
Raw
# Top 20 most-changed files all-time
git log --pretty=format: --name-only \
    | grep -v '^$' \
    | sort | uniq -c | sort -rn | head -20

# Most-changed files in the last 90 days
git log --since="90 days ago" --pretty=format: --name-only \
    | grep -v '^$' \
    | sort | uniq -c | sort -rn | head -20

# Most-changed files BY a specific author
git log --author="Alice" --pretty=format: --name-only \
    | grep -v '^$' \
    | sort | uniq -c | sort -rn | head
Tags

Save your own code snippets

Create a free account and build your private vault. Share publicly whenever you want.