Git Ignore Generator

Build a .gitignore file for your stack. Pick from 30+ templates covering languages, frameworks, editors, IDEs and operating systems, or choose a quick preset for Web, Mobile, Backend or Data/ML. Add custom patterns and download the file.

How to use

1

Pick your stack

Select templates for your languages, frameworks, editors and operating systems.

2

Use a preset (optional)

Quick presets cover common stacks like Web/JS, Mobile, Backend and Data/ML.

3

Add custom rules

Add extra patterns in the Custom rules field, one per line.

4

Download the file

Download the .gitignore file or copy the preview.

Quick presets
3 selected
.gitignore Preview
# Generated by Toolyland # https://github.com/github/gitignore # === Node.js === node_modules/ npm-debug.log* yarn-debug.log* yarn-error.log* pnpm-debug.log* .npm .yarn/cache .yarn/unplugged .pnp.* # === Visual Studio Code === .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json *.code-workspace # === macOS === .DS_Store .AppleDouble .LSOverride ._* .DocumentRevisions-V100 .fseventsd .Spotlight-V100 .TemporaryItems .Trashes .VolumeIcon.icns .com.apple.timemachine.donotpresent

Combines curated templates with your custom rules. Deduplicates lines. Works offline.

Features

30+ templates

Languages, frameworks, editors, IDEs and operating systems.

Quick presets

Web, Mobile, Backend, Data/ML, OS/IDE, Infra — one click to select common combinations.

Deduplication

Combines templates and custom rules, removing duplicate lines automatically.

Search

Filter templates by name to find exactly what you need.

Common use cases

  • Add a .gitignore to a new Node.js project
  • Combine templates for a Python + VS Code + macOS stack
  • Add project-specific ignore rules
  • Fix a bloated repository by ignoring build artifacts

Frequently Asked Questions

Related tools