Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidjguru/5f158163637f821a31f3230fa0b510f2 to your computer and use it in GitHub Desktop.
Save davidjguru/5f158163637f821a31f3230fa0b510f2 to your computer and use it in GitHub Desktop.
Git: Get a list with the most changed files from 12 months ago in a project folder

In some lines

git log --format=format: --name-only --since=12.month \  
| egrep -v '^$' \  
| sort \  
| uniq -c \  
| sort -nr \  
| head -50

In just one line

git log --format=format: --name-only --since=12.month | egrep -v '^$' | sort | uniq -c | sort -nr | head -50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment