Gitignore Generator
Tick the technologies and systems your project uses, put the groups in the order you want, add any custom rules, and copy or download a merged .gitignore with duplicates removed. Every rule in every group is visible before you use it.
1. Rule groups
Stored on this pageOrder of selected groups
No groups selected yet.
2. .gitignore
The download is named .gitignore, but most browsers drop the leading dot (Chrome saves “gitignore”; others may save “_gitignore”). Rename the file to .gitignore.
About Gitignore Generator
Gitignore Generator builds a .gitignore file from rule groups for Node.js, Python, PHP, Java, Visual Studio Code, JetBrains IDEs, macOS, Windows, Linux, logs and environment files, plus your own rules. Groups are merged in the order you choose, and duplicate rules are removed while keeping a sensible order.
A good .gitignore keeps dependencies, build output, editor settings, OS clutter and secrets out of a repository. Combining several sets by hand usually leaves duplicates and gaps.
Step by step
- Tick the rule groups that match your project and tools.
- Expand a group to review its rules if you like.
- Reorder or remove selected groups.
- Add any custom rules, one per line.
- Copy the output or download the .gitignore file.
What it offers
- Eleven transparent rule groups stored on the page
- Group order you control
- Duplicate rules removed, with negation-aware handling
- Custom rules treated as plain text
- Optional heading comment for each group
- Copy and download as .gitignore
Tips for best results
- Commit .gitignore early, before adding other files.
- Never commit real secrets; ignore .env files and keep an example file.
- Ignore build output rather than source files.
- Use git rm --cached for files that were committed before being ignored.
Why people use it
Transparent
See every rule before using it.
Clean
No duplicate lines.
Flexible
Reorder and add your own rules.
Private
Generated in your browser.
Common questions
This runs entirely in your browser
No file or text you enter here is uploaded. Encoding and decoding happen on your device using native browser APIs — close the tab and nothing remains on a server.