Flip your .gitignore: ignore everything by default, allow only what you need

rseroter · x · 2026-09-10

Alex Pliutau proposes an inverted .gitignore strategy: instead of allow-everything-then-ignore-junk (.DSStore, nodemodules, IDE configs, env vars, CLAUDE.md), ignore everything with and explicitly allow only needed files via ! rules like !.go, !go.mod.

Original post →

More from coding & agent

coding & agent channel →