Gitignore generator: make a .gitignore for your languages, editors and OS

Tick your languages, frameworks, editors and operating systems and get a clean .gitignore, with repeated lines removed. Copy it or download the file.

Keep it one tap away for everyday use.

Bookmark Gitignore maker?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

Or install fibub as an app: every tool you open then works offline.

  1. Tick
  2. Add own
  3. Copy
  4. Download
Nothing is uploadedWorks offline once open

Tick everything your project uses. The list updates as you tick.

Languages
Frameworks and tools
Editors
Operating systems

.gitignore

What it does

A .gitignore file tells Git which files to leave out of your repository: downloaded packages, build output, editor settings, operating-system clutter and secrets. This page lets you tick what your project uses and writes the file for you, grouped under headings, with any pattern that appears twice listed only once.

It runs in your browser and sends nothing anywhere. If you also publish a website, the robots txt makes the matching robots.txt, and slug maker cleans titles into tidy file names.

How to use it

  1. Tick every language, framework, editor and operating system you or your team use. A team on mixed machines should tick all of theirs.
  2. Add your own rules in the box, one per line.
  3. Copy the result or download it, and save it as .gitignore in the top folder of the project, next to the .git folder.

What each setting does

  • Languages and frameworks: the build folders, caches and package folders each one creates.
  • Secrets and .env files: keeps .env and key files out, but keeps .env.example so others can see the names.
  • Editors and operating systems: personal files such as .idea/, .DS_Store and Thumbs.db that should not be shared.
  • Your own rules: added at the end; a rule already in the list is not repeated.
  • Heading comments: a # Name line above each group, which you can turn off for a shorter file.

Worked example

Ticking Node.js, macOS, Visual Studio Code and Secrets gives 7 + 6 + 4 + 6 = 23 rules. Ticking Python and Java as well adds both lists, but build/ is in both and appears once. A rule such as node_modules/ that you type yourself is dropped because the Node list already has it.

FAQs

I added a file to .gitignore but Git still tracks it. Ignoring only affects untracked files. Run git rm --cached <file> once, then commit.

Is a secret safe once ignored? Only if it was never committed. If a key was committed, treat it as exposed and replace it.

Why a slash at the end? build/ matches only folders called build; without the slash it would match a file of that name too.

Where the numbers come from

  • Git documentation, gitignore pattern format (git-scm.com/docs/gitignore): a trailing slash matches folders, ! re-includes a path, * and ** are wildcards.
  • The lists of patterns are fibub's own short selection of what each tool usually writes into the project folder. Check your tool's own documentation if you use unusual settings.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-12-05.

Related tools