git-history-analysis
Installation
SKILL.md
Git History Analysis
Use this skill when
- Blaming code to the decisive commit
- Finding when behavior or config changed
- Auditing who changed what
Do not use this skill when
- Code review of a diff
- Rebuilds
Instructions
- Use git log -S/-G to find when a string/pattern entered history.
- Use git blame with ignore-revs for formatting commits.
- Bisect to find the commit that introduced a regression.
- Trace file renames with --follow.
- Correlate commits to issues/releases and deploys.
- Check for secret leakage across history when investigating.