.gitignore Generator
Generate customized .gitignore files for specific programming languages, frameworks, and development environments.
Languages
Frameworks
OS / Editors
.gitignore preview
# Node node_modules/ npm-debug.log* yarn-debug.log* yarn-error.log* .pnpm-debug.log* dist/ build/ .env .env.local .env.*.local coverage/ *.tsbuildinfo # React node_modules/ build/ dist/ .env .env.local .env.production npm-debug.log* yarn-debug.log* yarn-error.log* coverage/ # macOS .DS_Store .AppleDouble .LSOverride Icon ._* .Spotlight-V100 .Trashes # VS Code .vscode/* !.vscode/settings.json !.vscode/extensions.json
About the .gitignore Generator
A .gitignore generator creates a customized .gitignore file based on your programming language, framework, or editor, so you don't have to write common ignore rules by hand.
How to use
1
Select your programming language, framework, or editor.
2
The tool generates the appropriate .gitignore rules.
3
Copy the file into the root of your project.
Frequently asked questions
Can I combine rules for multiple frameworks?
Yes, most generators let you select several languages or tools at once and combine them into a single .gitignore file.
What happens if a file is already tracked by Git before I add it to .gitignore?
Adding a rule to .gitignore only prevents new, untracked files from being added. Already-tracked files need to be explicitly removed from tracking with a separate Git command.
Explore more tools in the Developer category.