DevGrill

.gitignore Generator

Build a .gitignore from GitHub's official templates for your language, editor and OS.

Runs in your browser

Presets:
Languages
Frameworks and tools
Editors and IDEs
Operating systems
Other
0 chars

What a .gitignore is for

A .gitignore file tells Git which files never to commit: dependencies like node_modules/, build output, logs, editor settings, OS clutter like .DS_Store, and secrets like .env. Getting it right at the start of a project saves you from huge commits and leaked keys later.

Pick what your project uses (a language or framework, your editor, your operating system) and get one combined file built from GitHub's official templates, the same ones GitHub offers when you create a repository. Patterns that appear in more than one template are kept once, and you can add your own lines at the end.

How to use the .gitignore Generator

  1. Pick your templates. Search or browse by group, or start from a preset like Node + macOS + VS Code.

  2. Add your own lines. Optional: project-specific paths like coverage/ or .env.local.

  3. Download or copy. Save it as .gitignore in the root of your repository.

Tips

  • A .gitignore only affects untracked files. If a file is already committed, remove it from Git with git rm --cached <file> first.
  • Put editor and OS patterns in your global ignore file (git config --global core.excludesFile ~/.gitignore_global) so every project gets them.
  • Commit .env.example with placeholder values and ignore the real .env.

Frequently asked questions

Where do the templates come from?

From github/gitignore, GitHub's official collection, which is public domain (CC0). They're bundled with DevGrill, so nothing is downloaded while you use the tool.

Why are some lines removed?

With Remove duplicate lines on, a pattern that an earlier template already lists is left out of later ones. Turn it off to get every template exactly as published.

My language isn't listed. What now?

This tool includes the 74 most used templates. For anything else, add the patterns under Your own lines, or copy the template from github/gitignore.

Is anything uploaded?

No. The file is put together in your browser.

Related tools