Something wrong with this tool?
About Gitignore Generator Online
This tool builds a .gitignore file from a checklist of common project templates: Node.js, Python, Java, .NET, macOS, Windows, JetBrains IDEs, VSCode, and dozens more. Pick the platforms and languages you use, and the tool combines their patterns into a single file.
A good .gitignore keeps junk out of your repository: build artifacts, cache directories, OS metadata files (Thumbs.db, .DS_Store), IDE settings, credentials, and dependencies that shouldn't be committed.
Copy the result into your project root as .gitignore. You can re-run the generator later when adding new tools — the patterns layer cleanly without conflict.
How to use this tool
How to generate a .gitignore for common stacks
Choose presets
"Presets (comma)" accepts a comma-separated list from `node, python, java, vscode, idea, macos, windows, linux`. Unknown tokens are silently dropped — only recognised ones produce rules.
Press Run
Result is a single `gitignore` field with concatenated blocks. Each preset block is preceded by a `# === preset ===` header so the source is obvious when you commit the file.
What goes in each preset
`node` covers `node_modules`, `dist`, `.npm`, `.pnpm-store`, `.next`. `python` covers `__pycache__/`, `*.pyc`, `.venv`, `*.egg-info`. `vscode` ignores `.vscode/` plus a `!.vscode/settings.json` allow. `macos` adds `.DS_Store`; `windows` adds `Thumbs.db`.
Layering on your own rules
After running, append your project-specific lines (`.env*`, `coverage/`, build outputs, secrets) below the generated blocks. Order doesn't matter for ignore vs allow — git uses the last matching pattern.