.gitignore Generator

Check off your stack, get a merged .gitignore with no duplicate lines, ready to drop into your repo.

Languages & runtimes

Frameworks & tools

Editors & OS

// Pick at least one template on the left to get started.

How it works

Each checkbox maps to a small built-in template covering that language's or tool's typical build artifacts, dependency folders, and local config files, the same patterns GitHub's own gitignore template collection uses as a starting point. Checked templates are concatenated under labeled section headers, run through a de-duplication pass so a pattern like node_modules/ only appears once even if two selected templates both include it, and your custom rules are appended last as their own section.

Nothing here reads your actual project, it only assembles text from templates baked into this page's JavaScript. Nothing is uploaded.

Common questions

Can I combine multiple templates?

Yes. Check as many as you need, Node and macOS and VS Code together, for example, and they're merged into one file with duplicate lines removed and each template kept under its own labeled section.

What if I need a rule that isn't in any template?

Use the custom rules box at the bottom. Whatever you type there is appended as its own section, so you can add project-specific paths without editing the generated file afterward.

Does this apply the file to my repo automatically?

No, it only generates the text. Download it as .gitignore and place it in your repo root yourself, or copy and paste it in.