Skip to content

Instantly share code, notes, and snippets.

@mehlah
Created October 4, 2012 11:01
Show Gist options
  • Save mehlah/3832962 to your computer and use it in GitHub Desktop.
Save mehlah/3832962 to your computer and use it in GitHub Desktop.
Descending sort of Ruby files in a repository by number of commits
git log --name-only --no-merges | grep \.rb$ | sort | uniq -c | sort -nr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment