Skip to main content

.gitignore Generator

Combine ready templates for Node, React, Python, Java, Go, editors and operating systems into one .gitignore file, and add your rules. Private.

Templates (3 chosen)

Language
Framework
Tool
Editor
Operating system

.gitignore

Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)

Free Online .gitignore Generator

Tick the languages, frameworks, tools, editors and systems you use and get one .gitignore file. Add your own lines at the end. It gives developers a quick browser-based way to solve a focused .gitignore generator task before moving the result into a project.

How to make a .gitignore

Tick the templates that match your project. The file on the right updates at once. Copy it, or download it as .gitignore and put it in the root folder of your repository.

Adding your own rules

Write extra patterns in the box, one per line, for example secrets.txt or *.local.

Common mistakes

  • Adding .env to .gitignore after it was committed: the old versions stay in history, so rotate any secret that was in it.
  • Ignoring lock files such as package-lock.json: they make installs repeatable and should usually be committed.

Frequently asked questions

Why combine templates?
A real project uses a language, a framework, an editor and an operating system at once. Choose each and the lines are merged with duplicates removed.
What if a file was already committed?
A .gitignore only affects files git does not track yet. To stop tracking a file that is already committed, run git rm --cached <file> and commit.
What do the ! lines mean?
A line starting with ! makes an exception: .vscode/* ignores the folder, and !.vscode/settings.json keeps that one file.
Is anything uploaded?
No. The file is made in your browser.
How do I use this .gitignore generator tool?
Use the interactive controls above; processing stays in your browser and the result is intended as a practical starting point for development work.

More DevOps & Network

View all DevOps & Network tools →