Przejdลบ do treล›ci

๐Ÿงน .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

1
2
3
4
5
6
bin/
obj/
.vs/
*.user
*.suo
*.log

Node.js

1
2
3
4
node_modules/
dist/
npm-debug.log*
.env

Python

1
2
3
__pycache__/
*.pyc
.env/

๐Ÿ” Global .gitignore

1
git config --global core.excludesfile ~/.gitignore_global