.gitignore Generator

Pick your languages, frameworks and operating systems and copy a ready-to-use .gitignore file — no signup, no wait.

Pick your stacks & environments
.gitignore

Generated locally in your browser — nothing is uploaded.

The right .gitignore, without the guesswork

Every project accumulates files that should never be committed — node_modules, __pycache__, build artifacts, editor folders, and OS cruft like .DS_Store. Instead of copying a half-remembered file from your last repo, select the stacks you're actually using and get a clean, correctly-sectioned .gitignore you can drop straight into your project root.

Cover your stack and your machine

Good ignore files combine language rules (Node, Python, Go, Java, Rust, PHP), editor rules (VS Code, JetBrains) and OS rules (macOS, Windows, Linux) — because a teammate on a different platform will generate different junk than you do. Toggle everything that applies; the output updates instantly and copies with one click, entirely in your browser.

FAQ

Where do I put the generated .gitignore?

Save it as a file literally named .gitignore in the root of your repository. Git then ignores matching files across the whole project. You can also add nested .gitignore files inside subfolders for path-specific rules.

Can I combine multiple stacks?

Yes — that's the point. Select every language, framework and OS that applies (for example Node + macOS + VS Code) and the tool concatenates them into one file with clear section headers.

Git is still tracking a file I just added to .gitignore. Why?

.gitignore only affects untracked files. If a file was already committed, Git keeps tracking it until you remove it from the index with 'git rm --cached <file>' and commit that change.

Should I ignore my lock files?

Generally no — commit package-lock.json, yarn.lock, poetry.lock, Cargo.lock and go.sum so builds are reproducible. These templates deliberately leave application lock files tracked.

Built by Abasthan Cloud

Free tools are just the start

Deploy your next app on bare-metal cloud with per-second billing — your first app is free, no credit card required.