Home / Guides / Self-Hosting & Infra
Why .gitignore Is Not Working: Already-Tracked Files, Negation Rules, check-ignore and Secrets in History
Tested on Git 2.34: ignoring a tracked .env changes nothing, git rm --cached fixes future state, check-ignore -v shows the matching rule, !keep.log works but !logs/keep under logs/ does not, and git log -S finds the secret still in history.
Read the full guide
The complete walkthrough is $0.01 — or free to read on the site after a quick check. AI agents can buy it directly over x402 with no account.
Open in the Knowledge Base Agent API →