.gitignore
.gitignore
Un file .gitignore elenca i modelli di percorso che Git non deve tracciare. Quei file restano fuori dallo stato e dai nuovi commit.
Un altro esempio
Un progetto web ignora le dipendenze, i risultati della build, lo stato dell'editor e i file dell'ambiente locale. Salva in commit una configurazione di esempio.
Parti principali
- 01Branch or change set
- 02Review and verification gate
- 03Released result
Usalo quando
Usalo per file generati, file della macchina locale, cache o file segreti che non appartengono al repository.
Non usarlo quando
Non può nascondere file tracciati o rimuovere segreti dalla cronologia. Evita schemi che eliminano risorse necessarie.
Nome usato nel codice
.gitignore patterns / git check-ignore Prima di spedire
Before publishing, check the exact repository, branch, target, and diff. Keep unpublished work. Pass review and CI checks. Record conflict and data-loss risks, release order, traceability, recovery, and rollback.
Outcome: Complete the task with .gitignore (.gitignore). User context: Un progetto web ignora le dipendenze, i risultati della build, lo stato dell'editor e i file dell'ambiente locale. Salva in commit una configurazione di esempio. Delivery concept or operation: .gitignore (.gitignore). Why it fits: Usalo per file generati, file della macchina locale, cache o file segreti che non appartengono al repository. Do not use it when: Non può nascondere file tracciati o rimuovere segreti dalla cronologia. Evita schemi che eliminano risorse necessarie. Delivery requirements: Name the code repository and target. List preconditions, changes, review and CI checks, conflict and data-loss risks, release order, and the rollback or recovery command. Repository safeguards: Keep unpublished work and a clear history. Do not run destructive steps without an explicit backup. Check the exact code diff and remote target before publishing. Acceptance criteria: Review the intended diff and pass all required checks. Keep the target version traceable. Practice failure recovery and keep published history clear. Evidence and limits (evidence boundary): È ufficiale per quella fonte. Altre piattaforme o team potrebbero usare il termine in modo diverso. Unknowns to confirm: Repository, branch, team activity, release environment, approval owner, protected checks, and rollback target.
Controlla questa richiesta
Review how .gitignore (.gitignore) is used now. Definition: Un file .gitignore elenca i modelli di percorso che Git non deve tracciare. Quei file restano fuori dallo stato e dai nuovi commit. Release checks: Before publishing, check the exact repository, branch, target, and diff. Keep unpublished work. Pass review and CI checks. Record conflict and data-loss risks, release order, traceability, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.