Bir .gitignore dosyası Git'e hangi dosya ve dizinleri yok sayacağını söyler — sürüm kontrolünde takip etmez. Oluşturulan dosyaları, bağımlılıkları, sırları ve işlenmemiş olması gereken ortama özel dosyaları hariç tutmak için kullanılır.
.gitignore ne yapar
# .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
