Git
.gitignore Generator
Compose a .gitignore from per-stack templates, with the negation ordering handled correctly.
Templates
Your own patterns
Explain a pattern
Re-includes ".env.example" even if an earlier rule ignored it. It has no effect if a parent directory is excluded.
Output · .gitignore
- A .gitignore only affects untracked files. Anything already committed keeps being tracked until you run `git rm --cached <path>`.
- Order matters: a `!` negation only works if it comes after the rule it undoes, which is why the secrets group is emitted last.
- A negation cannot re-include a file inside an excluded directory — exclude the files rather than the directory in that case.