技巧
阅读代码之前先跑这5条 git 命令

What Changes the Most
bash
git log --format=format: --name-only --since="1 year ago" | sort | uniq -c | sort -nr | head -20Who Built This
bash
git shortlog -sn --no-mergesWhere Do Bugs Cluster
bash
git log -i -E --grep="fix|bug|broken" --name-only --format='' | sort | uniq -c | sort -nr | head -20Is This Project Accelerating or Dying
bash
git log --format='%ad' --date=format:'%Y-%m' | sort | uniq -cHow Often Is the Team Firefighting
bash
git log --oneline --since="1 year ago" | grep -iE 'revert|hotfix|emergency|rollback'