Skip to content
hateitall

Gitignore Generator

Get a complete .gitignore for your stack in one go, and check which files it will ignore before you commit.

Processed locallyIn: Selection, TextOut: gitignore

Loading tool…

How to use gitignore generator

  1. Tick the languages, frameworks, tools, editors and operating systems your project uses.

  2. Add any rules of your own at the bottom.

  3. Paste a few paths from your project to see which would be ignored and by which line.

  4. Copy the file or download it, and save it as .gitignore at the root of your repository.

What this tool does

  • 29 templates written for this site, from Node, Python and Rust to Unity, Terraform, VS Code and macOS.
  • Rules that appear in more than one template are listed only once.
  • A path tester that follows git's rules: last match wins, ! re-includes, a trailing slash means folders only.
  • Shows when a file is ignored because a folder above it is ignored, which ! cannot undo.

How the result is verified

Paste paths from your project into the tester to see, line by line, which rule decides each one before you commit the file.

Frequently asked questions

Why is a file still tracked after I added it to .gitignore?

Git ignores only untracked files. If the file was committed before, run git rm --cached <file>, commit, and the ignore rule takes effect from then on.

Should I commit the .env file?

No. It usually holds secrets. The Secrets and env files template ignores .env and .env.* while keeping .env.example, so you can share the list of variables without their values.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Searchable git commands by task, with undo recipes and risk warnings

Text→ CommandLight on device

Build and check commit messages with type, scope, breaking changes and footers

Text→ Commit messageLight on device

Clean branch names from a ticket and description, checked against git rules

Text→ Branch nameLight on device

Owner, repo, branch and path from any GitHub link, plus raw, clone and ZIP links

URL · Text→ LinksLight on device