Gitignore Generator
Pick your languages, tools and operating systems to build a combined .gitignore file you can copy or download.
Gitignore Generator builds a .gitignore file from the languages, frameworks, editors and operating systems you tick, such as Node.js, Python, Java, macOS and VS Code. The combined file is ready to copy or download.
What is a .gitignore file?
.gitignore
A text file at the root of a Git repository listing patterns for files Git should not track: build output, dependency folders, logs, editor settings and secrets such as .env. A leading ! re-includes a file that an earlier pattern excluded.
Why use Gitignore Generator?
- Keep repositories clean. Stop node_modules, build folders and .DS_Store files from being committed.
- Protect secrets. The Node.js and Python sets ignore .env files while keeping .env.example.
- One file for a mixed stack. Combine several sets, each under its own heading so you can edit it later.
How to use Gitignore Generator, step by step

- Open Gitignore Generator and tick what you use. Languages, tools, editors and operating systems.
- Check the file. It updates as you tick.
- Download it as .gitignore. Put it in the root folder of your repository.
Frequently asked questions
Why are files I ignored still tracked?
.gitignore only affects files Git is not tracking yet. Run git rm --cached on a file to stop tracking it while keeping it on disk.
Should editor settings be ignored?
Personal settings, yes. The VS Code set keeps shared files such as settings.json and extensions.json so a team can share them.
Why does the download have no name before the dot?
The file is literally called .gitignore. Some systems hide files starting with a dot, so look for hidden files if you cannot see it.
Looking for the long version? The guides cover each of these jobs in depth.