A collection of .gitignore templates for personal or team use. This repository provides both global ignores (OS/editor cruft) and project-specific templates to quickly get new projects set up.
gitignore-templates/
├── global/ # Global templates for OS and editors
│ ├── macos.gitignore
│ ├── windows.gitignore
│ └── editors.gitignore
├── projects/ # Language or framework-specific templates
│ ├── python.gitignore
│ ├── csharp.gitignore
│ ├── swift.gitignore
│ └── web.gitignore
├── default.gitignore
└── README.md
Set a global ignore file so Git automatically ignores system and editor files across all your repos:
git config --global core.excludesfile ~/gitignore-templates/global/windows.gitignoreCopy the relevant template into your project root:
cp ~/gitignore-templates/projects/python.gitignore .gitignoreYou can also combine templates if needed:
cat ~/gitignore-templates/default.gitignore \
~/gitignore-templates/projects/python.gitignore > .gitignoreFeel free to submit PRs with additional templates, improvements, or updates. Keep templates clean and minimal—only include files that should truly be ignored.