Development

.gitignore Generator

Generate .gitignore files from language, framework, IDE and operating system templates.

Template search

Search languages, frameworks, IDEs, operating systems and development tools.

Templates

Select one or more templates. Duplicate rules are removed automatically.

Language

Framework

IDE

Operating System

Tooling

Custom rules

Add one .gitignore rule per line. Negated rules beginning with ! are supported.

Output options

Control comments and ordering in the generated file.

Templates

4

Rules

25

Duplicates removed

0

Empty rules removed

1

Generated .gitignore

Review the generated file, then copy it or download it directly.

.gitignore
# Node.js
.env
.env.*
.npm/
.pnpm-store/
coverage/
node_modules/
npm-debug.log*
pnpm-debug.log*
yarn-debug.log*
yarn-error.log*
!.env.example

# Next.js
.next/
.vercel/
next-env.d.ts
out/

# Visual Studio Code
.history/
.vscode/*
!.vscode/extensions.json
!.vscode/launch.json
!.vscode/settings.json
!.vscode/tasks.json

# macOS
._*
.AppleDouble
.DS_Store
.LSOverride

The generated file is created locally inside your browser. Review all rules before adding the file to an existing repository.

About this tool

What is .gitignore Generator?

.gitignore Generator combines templates for languages, frameworks, editors, operating systems and development tools into a single clean file. Add custom rules, remove duplicates, sort patterns and download the result.

Features

Built for fast developer workflows

  • Select multiple .gitignore templates.
  • Search templates by name, category and keyword.
  • Generate rules for Node.js, Next.js, Python, Java, Go and Rust.
  • Add templates for Visual Studio Code and JetBrains IDEs.
  • Add macOS and Windows filesystem rules.
  • Include Docker-related ignore rules.
  • Add custom ignore and negation patterns.
  • Remove duplicate rules automatically.
  • Sort normal and negated rules.
  • Include or remove template comments.
  • Copy or download the generated .gitignore file.
  • Generate every file locally in your browser.

Frequently asked questions

Questions about .gitignore Generator

What does a .gitignore file do?

A .gitignore file tells Git which untracked files and directories should normally be excluded from version control.

Can I combine several templates?

Yes. You can select any number of language, framework, IDE, operating system and tooling templates.

Are duplicate patterns removed?

Yes. Duplicate rules are removed both inside individual templates and across all selected templates.

What does a rule beginning with ! mean?

A leading exclamation mark negates a previous ignore pattern and allows a matching file or directory to be included.

Can I add custom rules?

Yes. Add one custom pattern per line, including negated patterns beginning with an exclamation mark.

Does this tool modify my repository?

No. It only generates text locally and never accesses your Git repository.

Related tools