๐งน .gitignore
.gitignore defines which files should be excluded from version control.
๐ Who This Is For
- Beginners learning Git basics
- Intermediate users improving repository hygiene
- Advanced engineers needing structured reference
- DevOps, sysadmins and developers maintaining clean repositories
๐ง Purpose
- Prevent committing build artifacts
- Exclude logs, caches, temporary files
- Keep repositories clean and lightweight
๐งฉ Common Examples
.NET
| bin/
obj/
.vs/
*.user
*.suo
*.log
|
Node.js
| node_modules/
dist/
npm-debug.log*
.env
|
Python
๐ Global .gitignore
| git config --global core.excludesfile ~/.gitignore_global
|