.gitignore Generator

Combine language, framework, editor and OS templates into one .gitignore file.

Runs in your browser — your data never leaves your device

Frequently Asked Questions

What is a .gitignore file?

A .gitignore is a plain text file in your repository that lists the files and folders Git should not track, such as dependencies, build output, logs, editor settings and secrets in .env files.

How do I create a .gitignore file?

Select the languages, frameworks, editors and operating systems your project uses, then copy the generated text or download it. Save it as .gitignore in the root folder of your repository and commit it.

Why is Git still tracking a file that is in my .gitignore?

A .gitignore only affects untracked files. If the file was committed earlier, run git rm -r --cached . to remove it from the index, add everything again and commit. The files stay on your disk.

Can I combine several templates?

Yes. Select as many as you need. Each gets its own labelled section, and a pattern that appears in more than one template is written only once.

Should I put macOS and editor files in every project?

It is common, and harmless, so these templates are included. If you would rather not, put files like .DS_Store and .idea/ in a global ignore file with git config --global core.excludesFile.

Is this generator free and private?

Yes. It is free, needs no signup and runs entirely in your browser. The templates ship with the page, so nothing you select or type is sent to a server.