Gitignore Generator
Pick your languages, frameworks and tools to build a clean .gitignore
Templates
3 selected · 0 official templates from github/gitignore
Loading templates…
.gitignore
# Select at least one templateExamples
Ignore Node.js project output
template: Node# Dependencies
node_modules/
# Build output
dist/
build/
# Environment
.env
.env.local
# OS / editor
.DS_Store
.vscode/A Node template skips installed dependencies, build artifacts, local env files, and common OS/editor junk.
Combine multiple stacks
templates: Node, macOSnode_modules/
dist/
.env
# macOS
.DS_StoreStacks merge into one file so a polyglot repository ignores the output of every language it uses.
About this tool
A .gitignore file tells Git which files and directories to skip — build output, dependency folders, environment secrets, editor config and OS-specific junk like .DS_Store or Thumbs.db. Committing any of those by accident clutters diffs, bloats the repo and can leak credentials. Starting a project with the right ignore rules from day one avoids all of that.
This generator ships a curated subset of GitHub's official github/gitignore collection (licensed CC0-1.0): 55+ templates covering the most-used programming languages, frameworks, editors/IDEs and operating systems. Pick the technologies in your stack from a searchable, categorized list and the tool merges them into one file, removing duplicate patterns that several templates share (for example *.log appears under both Node and Java).
The templates are bundled into the site at build time, so using the tool makes no network request and nothing you select leaves your browser. They load on demand the moment you open the page, keeping the route fast. The output is ready to save as .gitignore at the root of your repository.
How to use
Search your stack
Type a language, framework, editor or OS in the search box to narrow the list (e.g. "python", "rails", "vim").
Select templates
Toggle the chips for each technology in your project — Languages, Frameworks, Editors, OSes and a few Custom extras like environment files.
Review the merged output
The right pane builds a single .gitignore live, with each template under a # Name header and duplicate patterns removed across selections.
Copy to your repo
Click copy and save the result as .gitignore at the root of your repository.
Use cases
Bootstrapping a new repository
Generate a sensible .gitignore for your stack on day one so build output and secrets never get committed.
Adding a stack to an existing project
Append ignore rules when you introduce a new language or tool (e.g. adding Python to a JS repo) without hand-writing patterns.
Keeping secrets out of history
Ensure .env and credential files are ignored before the first commit, since removing them later doesn't erase prior history.
Template categories
| Category | Examples |
|---|---|
| Languages | Node, Python, Go, Rust, Java, C++, Ruby, Swift, Kotlin, Elixir |
| Frameworks | Rails, Laravel, Symfony, Unity, UnrealEngine, Godot, Terraform |
| Editors | VisualStudioCode, JetBrains, Vim, Emacs, SublimeText, Xcode |
| OSes | macOS, Windows, Linux |
| Custom | Environment (.env) and Logs |
Templates are bundled from github/gitignore (CC0-1.0) — no runtime network call.
Common mistakes
Mistake:Committing a file before adding it to .gitignore.
Fix:Git only ignores untracked files. If a file is already tracked, add the pattern then run `git rm --cached <file>` so Git stops tracking it.
Mistake:Using a trailing slash incorrectly.
Fix:A trailing slash matches a directory (build/) but not a same-named file. Omit the slash only when you mean both a file and a folder.
Mistake:Expecting global ignore rules to cover sensitive files automatically.
Fix:Templates cover common output, not your custom secrets. Add any private config or key files explicitly, and verify with `git status` before pushing.
Frequently asked questions
Related guides
Semantic Versioning: How Versions Bump, Compare and Precedence Work
What major/minor/patch actually communicate, how prerelease versions sort, why ^ and ~ matter in package.json, and how to bump correctly.
A Developer's Guide to .gitignore (with Ready-Made Templates)
What belongs in a .gitignore, the patterns that trip people up, and how to build a complete file for your stack in one click.
References & standards
Related tools
CHANGELOG Generator
Write a clean, consistent CHANGELOG entry in the Keep a Changelog format from grouped Added, Changed, Deprecated, Removed, Fixed, and Security notes
Chmod Calculator
Calculate Linux file permissions (777, 755 etc) easily.
Credit Card Validator
Validate credit card numbers with the Luhn algorithm and detect the issuing network
Cron Expression Builder
Build and validate cron expressions with visual interface and presets
CSS/JS Minifier
Minify your CSS and JavaScript code to reduce file size.
Database Connection String Builder
Build and URL-encode connection strings for PostgreSQL, MySQL, MongoDB, Redis and SQLite from a simple form — with JDBC and key/value variants