.gitignore generator

Tick the languages, frameworks, editors and operating systems your project touches — the file below combines their templates, in order, with a comment heading per section. Runs entirely in your browser; nothing is uploaded.

Templates 0 selected
Generated .gitignore empty

About this tool

Most projects need a .gitignore that's a combination of a few standard pieces — the language toolchain, maybe a framework, your editor's own housekeeping files, and your operating system's. This page keeps each piece as a separate ticked template so you can combine exactly the ones you need, rather than starting from one giant list and deleting the parts that don't apply.

How it works

Each ticked template is appended in a fixed order (languages, then frameworks, then editors, then operating systems, then tools) with a ### Name ### comment heading, exactly as it's stored — nothing is deduplicated or reordered across templates, so if two templates both ignore the same path it will appear twice under two different headings. That's deliberate: it keeps each section a faithful, checkable copy of that template on its own.

Common questions

Why do I see the same line twice?

Because two of your selected templates both mention it — for example most editor templates and most OS templates both ignore their own swap/cache files, and some language templates independently ignore .env. Harmless in a real .gitignore: repeated patterns don't change the result.

Can I edit the result before using it?

Yes — the box is read-only on this page to keep the source clear, but copy or download it and edit freely in your own editor; it's a completely ordinary text file once it leaves here.

My language/tool isn't listed — what do I do?

Pick the closest matches here, download, and add the remaining lines by hand. See Known limitations below for the current list's scope.

Known limitations

The same job at the command line

More tools

See the whole toolbox — thirty-seven free tools planned, all running in your browser.