.gitignore Generator
Pick your languages, editors and operating systems and get a ready .gitignore with a section for each. Covers 20 common stacks.
Processed on your device. Files are not uploaded
How to make a .gitignore
Tick what you use
Languages, editors and operating systems.
Check the result
Each choice adds a labelled section.
Save it
Copy it or download it as .gitignore.
Worked example
This is what .gitignore Generator gives for its own sample values. Open the tool above and change anything to try your own.
.gitignore
# Node.js node_modules/ npm-debug.log* yarn-debug.log* yarn-error.log* pnpm-debug.log* .npm .eslintcache .node_repl_history *.tgz coverage/ .nyc_output/ dist/ build/ ...
About .gitignore Generator
Build a .gitignore from 20 common templates: Node.js, Python, Java, Go, Rust, .NET, PHP, Ruby, Swift, Flutter, Unity, Terraform, macOS, Windows, Linux, JetBrains, VS Code, secrets and more.
FAQs
Why ignore .env files?
They often hold passwords and keys that must never be committed.
I already committed a file. Will this remove it?
No. Run git rm --cached on the file, then commit.
Where does the file go?
In the root folder of your repository.