.gitignore Generator

Build a .gitignore from common language and tool templates.

Your template choices are processed locally in your browser to build the .gitignore, and nothing is uploaded to a server.

Working with Docker? Try the Dockerfile Formatter.

About .gitignore Generator

This gitignore generator builds a ready-to-use .gitignore file from common language, framework, and tool templates so you do not have to remember every path to exclude. Pick one or more presets, such as Node, TypeScript, React, Next.js, Vue, Python, Java, Go, Rust, Docker, or Terraform, and the tool merges them into a single labeled file you can copy or download. It also bundles editor and OS templates like VSCode, JetBrains, macOS, Windows, and Linux. It is handy for developers starting a new repo, mono-repos that mix stacks, and teams standardizing what gets committed. Whether you need a quick node gitignore, a python gitignore, or a multi-stack gitignore template, the create gitignore workflow runs entirely in your browser and your selections never leave your device.

Features

How to use the .gitignore Generator

  1. Click the template pills for each stack you use, such as Node and Python.
  2. Toggle additional editor or OS presets like VSCode or macOS as needed.
  3. Review the combined .gitignore in the output panel.
  4. Use the Copy button or Download to save it as .gitignore in your project root.

Example

Input

Selected templates: Node, macOS

Output

# ----- Node -----
node_modules/
dist/
build/
coverage/
.cache/
*.log
npm-debug.log*
yarn-error.log*
.env
.env.local
.DS_Store

# ----- macOS -----
.DS_Store
.AppleDouble
.LSOverride
Icon
._*
.Spotlight-V100
.Trashes

Selecting Node and macOS merges both presets into one labeled .gitignore.

Common errors & troubleshooting

Frequently asked questions

What is the gitignore generator?
The gitignore generator assembles a .gitignore file from preset templates for languages, frameworks, editors, and operating systems, then lets you copy or download the result.
How do I create a gitignore for multiple stacks at once?
Toggle a pill for each stack, such as Node plus Python plus Docker, and the generator merges every selection into one file with a labeled comment header per section.
Which templates can I combine in the gitignore generator?
You can mix Node, TypeScript, React, Next.js, Vue, Python, Java, Go, Rust, Docker, Terraform, plus VSCode, JetBrains, macOS, Windows, and Linux presets in one file.
How do I use the generated gitignore file in my project?
Copy or download it, save it as .gitignore in your repository root, and commit it so Git starts ignoring the listed paths.
Does the gitignore generator keep my template selection private?
Yes. The gitignore generator runs entirely in your browser, so your selections and the generated file never leave your device and nothing is uploaded to a server.

Related tools

All ArrayKit tools