keeping-git-repos-clean
Prevents and cleans up secrets and dev artifacts accidentally committed to git repositories, covering .gitignore rules, untracking files, credential rotation, and history scrubbing.
What it does
Prevents, detects, and remediates files that should never be committed — secrets (.env, API tokens, hardcoded credentials) and dev artifacts (build output, scratch databases, editor/OS files). Covers .gitignore (and why it does not untrack), git rm --cached, auditing tracked files, history scrubbing, and credential rotation. Use when a repo has committed secrets or junk, when setting up a new repo's ignore rules, or when reviewing what a repo actually tracks.
Quality judgment
Comprehensive, accurate coverage of untracking vs ignoring, rotation-first secret handling, history scrubbing, and verification hygiene, with concrete commands and a useful checklist. The repo-specific note is a minor scope blemish but adds practical grounding; triggers are clear and well-scoped.