User Tools

Site Tools


git

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

git [2021/02/16 09:56]
127.0.0.1 external edit
git [2026/04/08 17:38] (current)
sqbell
Line 103: Line 103:
  
 INFO: https://stackoverflow.com/a/5188364/339767 INFO: https://stackoverflow.com/a/5188364/339767
 +
 +=== Inspecting new codebase ===
 +
 +https://piechowski.io/post/git-commands-before-reading-code/
 +
 +== What Changes the Most ==
 +
 +<code sh>
 +git log --format=format: --name-only --since="1 year ago" | sort | uniq -c | sort -nr | head -20
 +</code>
 +
 +== Who Built This ==
 +
 +<code sh>
 +git shortlog -sn --no-merges
 +</code>
 +
 +== Where Do Bugs Cluster ==
 +
 +<code sh>
 +git log -i -E --grep="fix|bug|broken" --name-only --format='' | sort | uniq -c | sort -nr | head -20
 +</code>
 +
 +== Is This Project Accelerating or Dying ==
 +
 +<code sh>
 +git log --format='%ad' --date=format:'%Y-%m' | sort | uniq -c
 +</code>
 +
 +== How Often Is the Team Firefighting ==
 +
 +<code sh>
 +git log --oneline --since="1 year ago" | grep -iE 'revert|hotfix|emergency|rollback'
 +</code>
git.txt · Last modified: 2026/04/08 17:38 by sqbell