← All Tools

🙈 Gitignore Generator

Compose a .gitignore from 25+ language, framework, IDE, and OS templates with search, presets, and custom rules.

Runs in your browser

Gitignore templates are generated locally in your browser. A .gitignore does not remove files already tracked by Git or clean secrets from history.

What this tool does

Gitignore Generator composes .gitignore files from language, framework, editor, OS, and custom rule templates.

Why it is useful

It helps developers avoid committing build artifacts, secrets, OS junk, and IDE metadata.

How it works

Select templates or a stack preset; the browser merges unique rules and optional section comments.

Best input

Pick your primary language/runtime first, then OS and editor, then add project-specific custom rules.

Git tip

If a file is already tracked, untrack it with git rm --cached before relying on .gitignore.

Privacy note

Template generation happens locally in your browser.

Important limitation

.gitignore cannot scrub secrets already committed to history.

Quick answers

Why is my file still tracked?

Ignoring only affects untracked files. Remove cached tracked files first.

Can I use this as a global gitignore?

Yes — enable global-style comments and put the file at the path configured by core.excludesFile.

Common Use Cases

Start a clean Node repository

Select Node, VS Code, macOS, and env templates so a new repo ignores modules, IDE junk, and secrets from day one.

Bootstrap a Node monorepo ignore file

Select Node, Astro/Next, VS Code, macOS, and env templates, then add workspace-specific dist folders.

Python + Jupyter project

Combine Python, Jupyter, pytest, and macOS templates for a data-science repo.

Docker-heavy backend

Use Go/Rust/Java plus Docker and JetBrains templates for backend services.

Related Tools

{}JSON Formatter🔐Base64 Encode / Decode🔗URL Encoder / Decoder<HTML Entity Encoder.*Regex Tester🎫JWT Decoder
View all in Code →