.gitignore Generator
Build a .gitignore from common stack pieces.
Sections
# Node node_modules/ npm-debug.log* yarn-debug.log* yarn-error.log* pnpm-debug.log* .pnpm-store/ .parcel-cache/ .cache/ # Next.js .next/ out/ next-env.d.ts .vercel .turbo # macOS .DS_Store .AppleDouble .LSOverride Icon ._* .DocumentRevisions-V100 .fseventsd .Spotlight-V100 .TemporaryItems .Trashes .VolumeIcon.icns # VSCode .vscode/* !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json *.code-workspace # Logs logs *.log lerna-debug.log* # Env .env .env.* !.env.example !.env.sample # Build dist/ build/ out/ coverage/
Save as .gitignore at the root of your repo. For more comprehensive templates, github.com/github/gitignore has language-specific files maintained by the community.
About
Pick the languages, frameworks, and OS you use. The tool combines the relevant gitignore sections (Node, Next, Python, Go, Rust, Java, macOS, Windows, etc.) into one file.
How to use
- Tick the sections you need.
- Copy and save as .gitignore at the repo root.
FAQ
What about already-tracked files?+
.gitignore only affects untracked files. To stop tracking already-committed files, run `git rm --cached <file>` after adding the pattern.