Skip to content

Instantly share code, notes, and snippets.

@rajrao
Created May 24, 2022 04:09
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 rajrao/d922818da6bc1c8c40dde1fe9e3b07e2 to your computer and use it in GitHub Desktop.
Save rajrao/d922818da6bc1c8c40dde1fe9e3b07e2 to your computer and use it in GitHub Desktop.
#based on: https://www.therealomar.com/articles/2019-06/Git-the-most-edited-files-in-a-project
git log --pretty=format: --name-only --since=1.years.ago |
Where-Object { ![string]::IsNullOrEmpty($_) } |
Group-Object |
Sort-Object -Property Count -Descending |
Select-Object -Property Count, Name -First 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment