Free Gitignore Generator Tool Online
Generate custom .gitignore files by combining templates for programming languages, frameworks, editors, and operating systems.
IN: Selected templates · OUT: .gitignore file · RUNS: 100% in your browser
Select templates to combine
### Node ### node_modules/ npm-debug.log* yarn-debug.log* yarn-error.log* .pnpm-debug.log* dist/ build/ .env .env.local ### macOS ### .DS_Store .AppleDouble .LSOverride Icon ### VSCode ### .vscode/* !.vscode/settings.json !.vscode/extensions.json
Frequently asked questions
Can I combine multiple templates in one .gitignore?+
Yes, select as many templates as apply to your project — for example a Node.js backend developed on a Mac in VS Code would combine the Node, macOS, and VSCode templates into one file.
Where do I put the generated .gitignore file?+
Save it as '.gitignore' (note the leading dot, no file extension) in the root of your Git repository. Git automatically picks it up for any files or folders you haven't already committed.
Why isn't a file I already committed being ignored?+
.gitignore only affects untracked files — if a file was already committed to the repository before being added to .gitignore, you'll need to explicitly remove it from tracking with 'git rm --cached <file>' for it to be ignored going forward.
Should node_modules always be gitignored?+
Yes, dependency folders like node_modules should almost always be excluded from version control since they can be regenerated from package.json, and including them bloats repository size significantly.
Can I edit the generated file further?+
Yes, treat the generated output as a starting point — add any project-specific files or folders (like local config files or generated build artifacts) that aren't covered by the standard templates.
Is my project information sent anywhere?+
No, the templates are static and combined entirely in your browser — nothing about your project is transmitted.