.gitignore Generator - Build Git Ignore Files Online
Build a .gitignore from language, framework, IDE and OS templates with automatic deduplication and grouped comments. Preview, copy or download the result.
Templates
Languages & Runtimes
Front-end Frameworks
Editors & IDEs
Operating Systems
Common Scenarios
Preview
# Languages & Runtimes # Node.js # Dependencies node_modules/ .pnpm-store/ # Build output dist/ build/ out/ # Logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* pnpm-debug.log* # Cache .cache/ .parcel-cache/ .eslintcache # Environment .env .env.local .env.*.local # Editors & IDEs # VS Code .vscode/* !.vscode/extensions.json !.vscode/settings.json # Operating Systems # macOS .DS_Store .AppleDouble .LSOverride # Common Scenarios # Environment .env.* !.env.example
Templates are combined locally in your browser. No project information is uploaded.
About This Tool
Every new repository needs a .gitignore, and assembling one by hand is slow and error-prone. This generator collects ignore rules for common languages, frameworks, editors and operating systems, then merges them without duplicates.
The output is grouped with comments for easier maintenance. Copy it or download a .gitignore file; everything is generated locally.
Key Features
Broad template coverage
Node, Python, Java, Go, Rust and more, plus Vue, React, Next and Nuxt.
Automatic deduplication
Repeated rules across templates are kept only once.
Grouped comments
Rules are organized by language, framework, IDE, OS and common scenarios.
Common preset
Select Node, VS Code, macOS, Windows, environment and log rules in one click.
Local generation
No project information is uploaded.
When to Use It
Initialize a repository
Pick templates for your stack and get usable ignore rules immediately.
Fill missing rules
Add IDE or OS rules to an existing .gitignore.
Standardize a team
Commit the generated template so everyone follows the same ignore policy.
How to Use It
- 1Select templates in the language, framework, editor and OS groups.
- 2Or click the common preset to select a typical set.
- 3Review the generated .gitignore in the preview.
- 4Copy the content or download the .gitignore file.
Frequently Asked Questions
Will it overwrite my existing file?
No. It only generates text; you decide whether to replace or merge. Merging is recommended.
Do already committed files become untracked?
No. .gitignore only affects untracked files; run git rm --cached for files that are already tracked.
Is project information uploaded?
No, template merging is entirely local.
