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

Common .gitignore Mistakes

  1. Adding .gitignore too late -- if files are already tracked, adding them to .gitignore won't untrack them. You need git rm --cached first.
  2. Forgetting .env files -- environment variables with database passwords, API keys, and secrets are the most commonly leaked files.
  3. Not ignoring IDE folders -- .vscode/, .idea/, and *.xcworkspace contain personal settings that differ per developer.
  4. Ignoring too much -- some config files (like .editorconfig or package.json) should be committed. Only ignore generated or personal files.
  5. 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.

More Free Tools

All Tools Docker Compose Generator SSH Config Generator JSON Tools