Templates
4
Development
Generate .gitignore files from language, framework, IDE and operating system templates.
Search languages, frameworks, IDEs, operating systems and development tools.
Select one or more templates. Duplicate rules are removed automatically.
Add one .gitignore rule per line. Negated rules beginning with ! are supported.
Control comments and ordering in the generated file.
Templates
4
Rules
25
Duplicates removed
0
Empty rules removed
1
Review the generated file, then copy it or download it directly.
# 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
.LSOverrideThe generated file is created locally inside your browser. Review all rules before adding the file to an existing repository.
About this tool
.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
Frequently asked questions
A .gitignore file tells Git which untracked files and directories should normally be excluded from version control.
Yes. You can select any number of language, framework, IDE, operating system and tooling templates.
Yes. Duplicate rules are removed both inside individual templates and across all selected templates.
A leading exclamation mark negates a previous ignore pattern and allows a matching file or directory to be included.
Yes. Add one custom pattern per line, including negated patterns beginning with an exclamation mark.
No. It only generates text locally and never accesses your Git repository.
Related tools
Development
Parse, inspect, validate, search and export environment variable files.
Development
Analyze Dockerfiles, inspect build stages and detect common image issues.
Development
Compare two texts and inspect added, removed and unchanged lines.