Soubor .gitignore říká Gitu, které soubory a adresáře ignorovat — nesledovat je ve správě verzí. Používá se k vyloučení generovaných souborů, závislostí, tajemství a souborů specifických pro prostředí, které by neměly být zaslány (committed).
Co .gitignore dělá
# .gitignore — patterns of files Git should NOT track
node_modules/ # dependencies (reinstalled from package files, don't commit)
dist/ # build output (generated, don't commit)
*.log # log files
.env # ⚠️ SECRETS / environment variables — NEVER commit!
.DS_Store # OS-specific junk
.vscode/ # editor config (often personal)
build/
coverage/
*.tmp
