Menu
PDF Tools
Image Tools
Converters & Utilities
Seller & Print Tools
Accounting & Business
Calculators
Text & Writing Tools
Developer & Web Tools
Creator & Social Tools
Browser Utilities & Games
Document & Design Makers
Text & Developer Tools
Exam & Form Tools

gitignore Generator

This tool creates a .gitignore file. Tick the languages, systems, editors and file types you use, and copy the patterns.

How to use gitignore Generator online

  1. Tick your stack. Languages, systems and editors.
  2. Add secrets and logs. Keep those groups on.
  3. Read the file. The patterns appear grouped.
  4. Copy it. Save it as .gitignore.

Why use this free gitignore Generator

  • Nineteen groups
  • Repeats removed
  • Secrets covered
  • Editor groups
  • Group comments
  • Share by link

What .gitignore does

A .gitignore file tells Git which files to leave out of version control: build output, downloaded packages, editor settings, logs and secrets. Leaving them out keeps the repository small and clean, and stops private files from being shared by mistake. Put the file in the top folder of your project.

How to use it

Tick the boxes that match your project: a language or framework such as Node.js, Python, PHP, Laravel, Java, Go or Rust, your operating system, and your editor. The tool joins the patterns for each, with a heading comment, and removes repeats. There are also groups for environment and secret files and for logs.

Secrets

The group for environment files lists .env, .env.* and key files, while keeping .env.example. Never commit passwords, tokens or private keys. If one has been committed already, adding it to .gitignore is not enough; remove it from history and change the secret, because anyone with the repository can read it.

Files already tracked

A .gitignore only affects files that Git is not yet tracking. If a file is already tracked, it stays tracked until you run git rm --cached on it and commit. This catches many people out. Also note that a pattern ending in a slash matches folders, and that a line starting with ! makes an exception.

Make it your own

The groups are a good start and not a complete list for every tool. Check them against your build tools, and add your own lines at the end. Some teams commit shared editor settings, which is why the Visual Studio Code group keeps settings.json and a few others. Check the result against your project before you commit it.

Using the tool

Change the text or any option of the gitignore Generator and the answer moves straight away. Use result as input to pass the answer to the next step.

gitignore Generator: frequently asked questions

Where does the .gitignore go?
In the top folder of the project.
Why is my file still tracked?
It was tracked before. Run git rm --cached on it.
Should I ignore the .env file?
Yes, and keep an .env.example without secrets.
What does a slash at the end mean?
The pattern matches folders.
How do I make an exception?
Start a line with !.
Does the gitignore Generator keep a copy of my text?
The gitignore Generator works locally, and clearing the site data removes anything the editor saved.
Can I save what the gitignore Generator gives me?
Yes. Copy the gitignore Generator result, or press Use result as input and carry on with the new text.

Related searches for gitignore Generator

  • gitignore Generator online
  • free gitignore Generator
  • gitignore Generator online free
  • gitignore Generator for mobile
  • gitignore Generator without sign up
  • gitignore Generator – Text & Writing Tools

gitignore Generator is a free online tool on MAITBOX, in the Text & Writing Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.

More tools in Text & Writing Tools →

Search tools