Skip to main content
HandyWeb

.gitignore Generator

Pick your languages, frameworks, editor, and OS, and get one complete .gitignore file without repeated lines, for Node, Python, Go, Android, and more.

Languages
Frameworks
Editors
Operating systems
Other
Chosen:Nothing is chosen yet.

A file that Git already tracks is not ignored by .gitignore. Run git rm --cached on it first.

The browser saves the file without the dot (gitignore). Rename it to .gitignore.

How to Use It

  1. Choose the languages and tools of the project.
  2. Add your own patterns if necessary.
  3. Copy or download the file, and put it in the root of the repository.

Questions and Answers

Why is a tracked file still in Git?

.gitignore ignores only new files. Run git rm --cached <file> to remove the file from Git without deleting it from the disk.

What does ! at the start of a line do?

It takes the pattern out of the ignored files. For example, !.env.example keeps the example file in the repository.

Good to Know

The patterns are for common projects, and they can be too many or too few for yours. Read the file before you use it.

Source code of this tool (opens in a new tab)Report a problem on GitHub (opens in a new tab)