Skip to content

Instantly share code, notes, and snippets.

@imRohan
Created April 8, 2026 13:34
Show Gist options
  • Select an option

  • Save imRohan/bd9360251afa77fa29de4d5345b33c27 to your computer and use it in GitHub Desktop.

Select an option

Save imRohan/bd9360251afa77fa29de4d5345b33c27 to your computer and use it in GitHub Desktop.
Git Repo Health Check

What Changes the Most

git log --format=format: --name-only --since="1 year ago" | sort | uniq -c | sort -nr | head -20

Who Built This

git shortlog -sn --no-merges

Where Do Bugs Cluster

git log -i -E --grep="fix|bug|broken" --name-only --format='' | sort | uniq -c | sort -nr | head -20

Is This Project Accelerating or Dying

git log --format='%ad' --date=format:'%Y-%m' | sort | uniq -c

How Often Is the Team Firefighting

git log --oneline --since="1 year ago" | grep -iE 'revert|hotfix|emergency|rollback'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment