🔒 100% private — runs in your browser, nothing is uploaded

Gitignore Generator

Build a .gitignore from ready-made templates for Node, Python, Java, Go, Rust, operating systems and editors — tick, copy, commit.

A .gitignore only works when it matches the tools that actually create the clutter, and hand-writing one from memory always misses something — usually the one folder that is 400 MB. This generator stitches together proven per-tool templates instead. Worked example: ticking just Python produces a file that starts with ### Python ### and lists __pycache__/ and *.py[cod], so compiled bytecode never gets committed. Ticking 2 templates, Node and then Python, produces 2 sections with ### Node ### before ### Python ###, and the Node section lists node_modules/ — the single most-committed-by-accident folder in JavaScript projects.

Templates are embedded in this page from the github/gitignore dataset (CC0) — nothing is fetched when you use the tool. Your selections and the generated file are never uploaded, stored or put into a link; they live only in this page on your device.

Quick answers

How do I create a .gitignore file?

Tick the templates for your stack, copy the generated text, and save it as .gitignore in your repository root. Python alone starts with ### Python ### and covers __pycache__/ and *.py[cod]; Node adds node_modules/.

Combine language, operating system and editor templates freely — each gets its own headed section, in the order you picked them.

Does .gitignore remove files already in my repository?

No. It only stops untracked files from being added. A file that is already tracked keeps being tracked until you remove it from the index with git rm --cached and commit that change.

That is a Git rule, not a limitation of this generator — no .gitignore content can untrack a file by itself.

How to use

  1. Tick the templates that match your stack — languages, operating systems and editors can all be combined in one file.
  2. Check the generated text: each template appears under its own ### Name ### header, in the order the templates are listed on the page.
  3. Copy the text, or download it as a file and rename it to exactly .gitignore in the root of your repository.
  4. Commit the .gitignore before you commit anything else, so the files it lists never enter history in the first place. Files already tracked need git rm --cached to start being ignored.

About this tool

The templates on this page are embedded from the github/gitignore dataset, which GitHub maintains under a CC0 public-domain dedication — they are built into the page itself, self-hosted, and never fetched at runtime, so the tool works offline and sends nothing anywhere. Treat the result as a strong starting point, not gospel: add project-specific entries (local data folders, generated reports, a scratch directory) underneath the generated sections, and remember that .gitignore only stops untracked files from being added — it does not untrack files that are already in the repository.

Frequently asked questions

Where do these templates come from?

From the github/gitignore dataset maintained by GitHub and released under CC0. A faithful subset for ten common stacks is embedded in this page — Node, Python, Java, Go, Rust, macOS, Windows, Linux, VS Code and JetBrains — so nothing is fetched when you use the tool.

Why is a file still being committed even though it is listed?

Because it was tracked before the rule was added. .gitignore prevents new files from being added; for an already-tracked file, remove it from the index with git rm --cached and commit that removal — the file stays on your disk and is ignored from then on.

Should I combine operating system and editor templates too?

Yes, if your team works across machines. Language templates cover build output, but .DS_Store comes from macOS, Thumbs.db from Windows, and .vscode/ or .idea/ from editors. Combining all three layers is normal and the sections do not conflict.

Is anything I select sent to a server?

No. The templates live in the page, the file is assembled in your browser, and your selections are never uploaded, stored or put into a link.

📦 Embed this tool on your site

<iframe src="https://verystep.com/embed/gitignore-generator/" title="Gitignore Generator" width="100%" height="520" loading="lazy" style="border:0"></iframe>

Free to use. The embed shows a small "Powered by Verystep" link.

First time embedding? Read the step-by-step guide →

More free tools