Gitignore Generator
Build a .gitignore by combining the stacks you use
What is Gitignore Generator?
The .gitignore generator ships templates for language and framework stacks such as Node, Python, Java, Go, Rust and Terraform, alongside environment templates for macOS, Windows, JetBrains IDEs and VS Code. Select as many as you need and the rules are merged with a comment marking where each block came from. Generation happens locally in your browser.
How to use Gitignore Generator
- 1Click to select the stacks and development environments your project uses.
- 2The output is grouped by source and commented, which keeps it maintainable later on.
- 3Copy the result and save it as .gitignore in your repository root.
How do I do this in code?
Use the tool above for one-off work; for anything you repeat, move it into a script or your project.
# .gitignore only affects untracked files; committed ones must leave the index first git rm -r --cached node_modules git commit -m "chore: stop tracking node_modules"
Frequently asked questions
Why is a file still tracked after I added it to .gitignore?+
.gitignore only applies to files Git is not already tracking. Once a file has been committed you have to remove it from the index with git rm --cached and commit that change; the ignore rule takes effect from then on.
Should editor settings go in .gitignore?+
Ignore the personal parts — the whole .idea directory, and per-user settings under .vscode — but keep whatever the team shares, such as the formatting rules and recommended extension list in .vscode/settings.json. The VS Code template here already carves out those exceptions.
Related tools
All toolsUUID Generator
Generate UUID v4 or v7 in bulk, with optional hyphen removal
ULID Generator
Generate ULIDs and decode the timestamp embedded in each one
NanoID Generator
Generate NanoIDs at an adjustable length
ObjectId Generator
Generate ObjectIds and decode their timestamps
Password Generator
Generate strong random passwords with a configurable character set
Random String Generator
Generate random strings in bulk from a character set of your choice