All tools

.gitignore Generator

Select your stack and get a clean, combined .gitignore in seconds. Supports Node.js, Python, Go, Rust, Java, Docker, macOS, Windows, VS Code, JetBrains, and more. Runs in your browser.

Language / Runtime

Framework

OS / System

Editor / IDE

Secrets

Infrastructure

Common

Find CLAUDE.md rules for your stack

Browse community rules for Node.js, Python, Go, and more.

Browse rules
.gitignore(4 templates)

What is .gitignore?

A .gitignore file tells Git which files and directories to ignore when tracking changes. Files listed in .gitignore are not staged, committed, or pushed to remote repositories. This keeps your repository clean and prevents sensitive files (like .env) or generated artifacts (like node_modules/) from being accidentally committed.

Best practices

  • Always ignore .env and .env.local files to keep secrets out of your repo
  • Ignore node_modules/, __pycache__/, and other dependency directories
  • Include OS-specific files (.DS_Store on macOS, Thumbs.db on Windows) for cross-platform teams
  • Add build output directories (dist/, build/, .next/) since these are generated from source