Generate perfect .gitignore files for any project. Select your tech stack, click generate. 50+ templates — completely free.
A .gitignore file tells Git which files and directories to ignore in your repository. Without one, you risk committing sensitive data, bloating your repo with build artifacts, and creating merge conflicts from OS-specific files.
Every project should ignore:
node_modules/, vendor/, venv/dist/, build/, .next/, __pycache__/.env, .env.local (contain secrets!).DS_Store, Thumbs.db, desktop.ini.idea/, .vscode/, *.swp*.log, npm-debug.log*Select your languages, frameworks, and tools from 50+ templates. Our generator combines them intelligently — deduplicating entries, organizing by category, and adding comments so you know what each rule does. The result is a clean, production-quality .gitignore file ready to drop into your repository.
The most common mistakes developers make with .gitignore:
git rm --cached themThis tool runs entirely in your browser. No API calls, no data collection, no limits. Generate as many .gitignore files as you need. Use it for every new project.
Select your project type — Node.js, Python, Java, React, and more. The generator creates a comprehensive .gitignore with all standard patterns for your stack. Copy the output and save it as .gitignore in your repository root.
Exclude dependency folders (node_modules, vendor), build output (dist, build), environment files (.env), IDE configs (.vscode, .idea), OS files (.DS_Store, Thumbs.db), and log files. Never commit secrets or credentials.
Add node_modules/ on its own line in .gitignore. If it was already committed, run git rm -r --cached node_modules to untrack it, then commit the updated .gitignore.
Files already committed before adding the ignore rule stay tracked. Run git rm -r --cached [filename] to untrack them, then commit again. The .gitignore only prevents future tracking.
Yes. Each directory can have its own .gitignore affecting only that directory and below. You can also create ~/.gitignore_global for personal rules that apply across all your repositories.
Get the complete system to hire an AI agent as your first employee. Setup guides, 30 delegation templates, security hardening.