.gitignore Generator
Combine .gitignore templates and download.
# Generated with HQ8T .gitignore Generator
# Node.js
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
.npm
.pnpm-store/
coverage/
.nyc_output/
dist/
build/
.cache/
.env
.env.*
!.env.example
# Next.js
.next/
out/
next-env.d.ts
.vercel
*.tsbuildinfo
# VS Code
.vscode/*
!.vscode/settings.json
!.vscode/extensions.json
*.code-workspace
# macOS
.DS_Store
.AppleDouble
.LSOverride
._*
.Spotlight-V100
.Trashes
# Windows
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/
*.lnk
Some browsers save the file as “gitignore” — rename it to “.gitignore” in your project root. Already committed a file? Add it here, then run git rm --cached <file> so Git stops tracking it.
How to use
- 1Search or pick the languages, frameworks, editors and OS you use.
- 2Add any extra lines of your own.
- 3Check the combined file; duplicates are removed.
- 4Download .gitignore or copy it into your project root.
Frequently asked questions
Where do I put .gitignore?
In the root folder of your repository, next to the .git folder.
Why is a file still tracked after adding it?
.gitignore only affects untracked files. Run git rm --cached <file> and commit to stop tracking it.
What does ! mean in .gitignore?
It re-includes a file that an earlier rule ignored, like !.env.example.
Should I commit .env files?
No. Keep secrets out of Git; commit an .env.example with placeholder values instead.
Is my data uploaded?
No. Everything runs in your browser; nothing you paste is sent to a server.
You may also need
Git Cheat Sheet
Searchable Git commands with explanations.
URL Parser
Split URLs, edit query params, build UTM links.
JSON Formatter
Format, validate and minify JSON.
Password Generator
Generate strong, random passwords.
Base64 Encoder / Decoder
Encode text to Base64 or decode it back.
URL Encoder / Decoder
Encode or decode URLs and see every query parameter.