gitignore Generator
Generate a .gitignore by combining curated templates for Node, Python, Java, Go, Rust, editors, OSes and secrets. Free, in your browser.
Generate .gitignore
Select the stacks and tools you use. We combine the right ignore rules.
# Node
node_modules/
npm-debug.log*
yarn-error.log
.pnpm-debug.log*
dist/
build/
coverage/
# Env
.env
.env.local
.env.*.local
*.pem
*.key
secrets.*
# macOS
.DS_Store
.AppleDouble
.LSOverride
Icon
What this .gitignore generator does
Common use cases
- 1Starting a new repository
- 2Adding editor/OS ignores
- 3Keeping secrets out of Git
- 4Combining rules for a full stack
- 5Standardising team .gitignores
- 6Cleaning up a messy repo
Related tools
About .gitignore
A .gitignore tells Git which files never to track — dependencies, build output, editor folders, OS junk, and above all secrets like .env files and private keys. Committing those by accident is a common and costly mistake.
This generator combines curated, widely-used templates for the stacks and tools you pick into one clean file. Drop it at your repository root before your first commit. If a secret has already been committed, remember that removing it from .gitignore isn't enough — you must also purge it from history and rotate it.
More Free Tools Where This Came From
This utility is one of dozens of free, no-login tools for DNS, email, SEO and developers — all instant and private.
HostCloud.in · Pune, India · Serving 34,987+ Websites Since 2020
Got Questions? We Have Answers.
How does it work?
Select the stacks and tools you use and it combines curated, widely-used ignore rules into one clean .gitignore.
Does it ignore secrets?
Yes — the Env template ignores .env files, keys and secrets, which should never be committed.
A secret is already committed — is .gitignore enough?
No. .gitignore only affects untracked files. Purge the secret from history and rotate it.
Does it run in my browser?
Yes, entirely client-side.
