Keeping Git Repos Clean

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.

wdm0006 Updated 115 repo stars

File contents

wdm0006/python-skills commit 3b93c75c3b

Frequently asked questions

npx get-skill add wdm0006/keeping-git-repos-clean