Search tools

Search for a command to run...

.gitignore Generator

Build a .gitignore file for your stack — Node, Python, Java, Go, Rust, .NET, Flutter plus OS and editor files — in a few clicks.

How to use

  1. 1Tick the languages, tools and operating systems you use.
  2. 2Copy the result into a file named .gitignore in your repository root.

Frequently asked questions

Where does the .gitignore file go?

In the root of your repository. You can add more .gitignore files in subfolders for rules that apply only there.

Why is a file still tracked after I ignored it?

.gitignore only affects untracked files. Run git rm --cached <file> to stop tracking it, then commit.

Should .env files be ignored?

Yes — they usually hold secrets. Commit a .env.example with placeholder values instead, which the template allows with !.env.example.