🚫.gitignore Generator

Build a .gitignore from common templates

# ----- Node -----
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
.npm
.yarn/
dist/
build/
coverage/
.env
.env.local
.env.*.local

# ----- macOS -----
.DS_Store
.AppleDouble
.LSOverride
Icon
._*
.Spotlight-V100
.Trashes

About the .gitignore Generator

.gitignore Generator builds a ready-to-use .gitignore file from common templates β€” languages and frameworks like Node, Next.js, Python, Java, Go, and Rust, plus operating systems and editors like macOS, Windows, VS Code, and JetBrains.

Select the stacks you use and copy a combined, de-cluttered .gitignore for your repository.

Common use cases

  • Starting a new repository with sensible ignores
  • Combining language, OS, and editor ignore rules
  • Avoiding committing node_modules, build output, or .DS_Store
  • Standardizing .gitignore across a team

How to use the .gitignore Generator

  1. Click the templates that match your project and tools.
  2. Review the combined .gitignore output.
  3. Copy it into a .gitignore file at the root of your repo.

Frequently asked questions

Can I combine multiple templates?

Yes. Select as many as you like β€” for example Node, macOS, and VS Code β€” and they are merged with clear section headers.

Where do I put the .gitignore file?

Usually at the root of your repository. You can also place additional .gitignore files in subdirectories for more specific rules.

Does .gitignore remove already-tracked files?

No. It only affects untracked files. To stop tracking a file already committed, run git rm --cached on it.