Choose your templates
Search language, framework and tool templates. Add only the rules your project needs.
YOUR REPOSITORY, LESS CLUTTER
Choose your languages, tools and systems. Combine templates, review the rules, and save one file.
You can combine language, framework, operating system and editor templates. Review the rules for your project.
# Select a template to see your file here. Templates load from this site; generation happens in your browser.
Watch out: Do not assume every lock file or requirements file is disposable. Dependency declarations are often essential project source.
git check-ignore -v .venv/bin/python The output identifies the matching rule and source file. If nothing appears, check the path and whether the file is already tracked.
Troubleshoot ignore rulesWatch out: Do not assume .env.example contains secrets; it is often useful configuration documentation to commit. Check its contents before sharing.
git check-ignore -v node_modules/example/index.js The output identifies the matching rule and source file. If nothing appears, check the path and whether the file is already tracked.
Troubleshoot ignore rulesWatch out: Review generated archives individually; a checked-in release artifact may be intentional.
git check-ignore -v app/build/classes/java/main/App.class The output identifies the matching rule and source file. If nothing appears, check the path and whether the file is already tracked.
Troubleshoot ignore rulesWatch out: A broad binary filename pattern may hide a file you intended to commit; inspect the preview first.
git check-ignore -v coverage.out The output identifies the matching rule and source file. If nothing appears, check the path and whether the file is already tracked.
Troubleshoot ignore rulesWatch out: Some IDE configuration can be shared by a team. Review the rules before accepting every IDE exclusion.
git check-ignore -v local.properties The output identifies the matching rule and source file. If nothing appears, check the path and whether the file is already tracked.
Troubleshoot ignore rulesWatch out: Before using a broad unpackage rule, check whether your project stores required resources under that directory. If files are already tracked by Git, adding .gitignore rules will not stop tracking them.
git check-ignore -v unpackage/dist/dev/app-plus/index.html The output identifies the matching rule and source file. If nothing appears, check the path and whether the file is already tracked.
Troubleshoot ignore rulesSearch language, framework and tool templates. Add only the rules your project needs.
Check the preview and add your own rules. Order and negation patterns matter.
Download .gitignore to your repository. Use git check-ignore -v to inspect a rule; tracked files need a separate step.