Don't forget!
Common Stacks
Quick-select a preset stack, then customize below.
Preview
Select items on the left to generate your .gitignore
What is a .gitignore File?
A .gitignore file tells Git which files and directories to ignore when tracking changes in your repository. It prevents build artifacts, dependency folders, environment files, and IDE configurations from being committed to version control.
Why You Need a .gitignore
- Keep your repo clean -- build outputs, compiled binaries, and dependency folders (like
node_modules/or__pycache__/) don't belong in version control. - Protect secrets -- files like
.env,credentials.json, and API key files should never be committed. Once pushed, secrets are in the git history forever. - Avoid merge conflicts -- IDE settings, OS-generated files, and user-specific configs cause unnecessary conflicts between team members.
- Faster operations -- ignoring large or numerous generated files makes
git status,git add, and other commands significantly faster.
Common .gitignore Mistakes
- Adding .gitignore too late -- if files are already tracked, adding them to .gitignore won't untrack them. You need
git rm --cachedfirst. - Forgetting .env files -- environment variables with database passwords, API keys, and secrets are the most commonly leaked files.
- Not ignoring IDE folders --
.vscode/,.idea/, and*.xcworkspacecontain personal settings that differ per developer. - Ignoring too much -- some config files (like
.editorconfigorpackage.json) should be committed. Only ignore generated or personal files. - Missing OS files --
.DS_Store(macOS),Thumbs.db(Windows), and*~(Linux backup files) clutter repos silently.
How This Generator Works
Select your languages, frameworks, IDEs, and operating systems from the checkboxes above. The generator combines curated templates with comments explaining each pattern, so you understand exactly what's being ignored and why. Use the quick-select presets for common stacks like React, Django, or Unity, then customize as needed.