.gitignore Generator
Pick your stack and get a correct .gitignore file instantly. Node, Python, Java, React, Go, Rust, Unity, and more. Free, no sign-up.
Pick Your Stack
Languages
Platforms
OSs
Editors
.gitignore
### Node.js / JavaScript / TypeScript (React, Vue, Next.js, Nuxt) ### # Logs logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* lerna-debug.log* # Diagnostic reports report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json # Runtime data pids *.pid *.seed *.pid.lock # Coverage directories used by tools like istanbul coverage *.lcov .nyc_output # Dependency directories node_modules/ jspm_packages/ web_modules/ # TypeScript cache *.tsbuildinfo # Optional npm/eslint/stylelint caches .npm .eslintcache .stylelintcache # Optional REPL history .node_repl_history # Output of 'npm pack' *.tgz # Yarn Integrity file .yarn-integrity # dotenv environment variable files .env .env.* !.env.example # parcel-bundler cache .cache .parcel-cache # Next.js build output .next out # Nuxt.js build / generate output .nuxt dist .output # Gatsby files # .cache/ # public # vuepress / vitepress build output .vuepress/dist **/.vitepress/dist **/.vitepress/cache # Sveltekit cache directory .svelte-kit/ # Docusaurus cache and generated files .docusaurus # Serverless directories .serverless/ # yarn v2/v3 .pnp.* .yarn/* !.yarn/patches !.yarn/plugins !.yarn/releases !.yarn/sdks !.yarn/versions # pnpm .pnpm-store # Vite files vite.config.js.timestamp-* vite.config.ts.timestamp-* .vite/
Based on GitHub's official gitignore template collection. Nothing about your project is uploaded — everything is generated locally in your browser.
Support Our Free Tools
If you find this calculator helpful, please consider supporting our work. Your contribution helps us build and maintain these free tools for everyone.
Buy me a coffeeFree .gitignore Generator
A missing or incomplete .gitignore file is how node_modules, build output, API keys, and OS junk files like .DS_Store end up committed to a repository. This tool builds a correct, deduplicated .gitignore file from GitHub's own official templates — pick every technology in your stack, and it merges them into one file instantly, ready to drop into your project before your first commit.
What Should Be in a .gitignore File?
📦 Dependencies
Folders like node_modules/, vendor/, or .venv/ — these are reinstalled from a lockfile, so committing them just bloats the repo.
🏗️ Build output
Compiled or bundled output like dist/, build/, .next/, or target/ — generated automatically and shouldn't be hand-edited or version-controlled.
🔑 Secrets & environment files
.env files and similar often hold API keys or credentials. Keep an .env.example checked in instead, with real values kept local only.
🖥️ OS & editor junk
Files like .DS_Store (macOS), Thumbs.db (Windows), and .idea/ or .vscode/ (editors) are personal to your machine, not your project.
Already Committed Something You Shouldn't Have?
Adding a .gitignore file only stops new, untracked files from being added — it won't remove files Git is already tracking. If something like node_modules/ or an .env file was committed before you added your .gitignore, untrack it first:
git commit -m "Remove node_modules from tracking"
If a secret was committed and pushed, treat it as compromised — rotate the credential, don't just delete it from history and assume it's safe.
Frequently Asked Questions
Is this .gitignore generator free?
Yes, completely free with no sign-up and no limit on how many files you generate.
Where do the templates come from?
The core language and platform templates are based on GitHub's official, community-maintained gitignore template collection, the same source used by GitHub's own repository creation flow.
Can I combine multiple stacks, like Node and Python?
Yes. Select as many templates as you need and they'll be merged into a single file, with duplicate rules automatically removed.
Does React or Vue have its own template?
React, Vue, Next.js, and Nuxt projects are all Node.js-based, so selecting the Node.js template covers them — it already includes their common build output folders.
What if a file is already tracked by Git?
A .gitignore file only affects untracked files. If something like node_modules was already committed before adding your .gitignore, you'll need to remove it from Git's tracking separately (for example with git rm -r --cached), then commit again.
Does it save or upload my project?
No — this only generates a text file from templates you select. Nothing about your project or code is uploaded anywhere.
Explore More Free Developer Tools
The .gitignore Generator is part of Texterfly's growing collection of free developer tools — no sign-up, nothing uploaded to a server.
Explore All Tools
134 free tools — no signup required
All 134 tools are free · No signup · No ads
