Skip to content
Zesona
Gitignore GeneratorLocal

Gitignore Generator

Assemble a .gitignore from curated templates for languages, frameworks, editors and operating systems.

  • Free
  • No sign-up
  • Runs in your browser

Input

Runs in your browser

Comma separated. Available: node, python, java, go, rust, php, ruby, dotnet, macos, windows, linux, editors, secrets, docker, terraform, unity, laravel, django, nextjs.

Ready

Everything happens on this device. No upload, no account, no network request.

How to use this tool

  1. 1

    List the templates you want. Combining a language, an editor, an operating system and `secrets` covers most projects.

  2. 2

    Copy the result into a `.gitignore` at your repository root.

Questions about Gitignore Generator

I added a file to .gitignore but git still tracks it. Why?

Because .gitignore only affects *untracked* files. Once a file is tracked, git keeps tracking it. Run `git rm --cached <file>` to stop, then commit. Crucially, the file remains in the history - if it was a secret, rotate the credential, because removing it from the working tree does not remove it from every clone.

How do the patterns work?

Relative to the .gitignore file. A leading slash anchors to that directory (`/build` ignores only the top-level one), a trailing slash matches directories only (`build/`), `*` matches within a path segment, `**` crosses segments, and a leading `!` re-includes something an earlier rule excluded.

Why is there a separate secrets template?

Because a committed credential is the most expensive mistake in this list, and it is easy to make. Every one of these patterns - `.env`, `*.pem`, `id_rsa`, `service-account*.json` - represents a credential that gets committed routinely. The template includes a comment reminding you that rotation, not deletion, is the fix once it has happened.

Is my data sent anywhere?

No. This tool runs as JavaScript inside your browser tab. There is no network request carrying your input, nothing is written to a server log, and it keeps working with your connection switched off. You can confirm it in the browser’s network panel. That matters more here than elsewhere on the site: developer tools handle tokens, keys and production data.

Does the Gitignore Generator work offline?

Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Gitignore Generator keeps working with the network switched off and nothing is ever sent to a server.

Other tools you might reach for next.