.gitignore & .dockerignore Template Composer
Combine clean ignore rules for Node, Python, Go, Rust, Solidity/Foundry, and IDE files into one copy-ready file. Everything runs in your browser.
Version-control ignores. Negation rules like !.env.example stay ordered last.
Rules
0
Sections
0
Size
0 B
Dupes removed
0
Does the order of ignore rules matter?
Yes. Later patterns win, and a negation such as !.env.example only re-includes a file that an earlier rule ignored. This composer keeps negations at the end of their section and warns you when a negation has no earlier rule to override.
Should .gitignore and .dockerignore use the same rules?
Not exactly. A .dockerignore should also drop .git, CI configs, docs, tests, and lockfile noise to shrink the build context, while a .gitignore must never hide files the build depends on. Switch the target above and the rule sets adapt.