error: sparse-checkout is not enablederror: sparse-checkout non è abilitato
È stata tentata un'operazione di sparse-checkout ma la funzionalità non è abilitata.
Cause di questo errore
Si è tentato di modificare i pattern di sparse-checkout senza prima abilitare la funzionalità. Il sparse checkout deve essere inizializzato prima di poter essere configurato.
Come correggerlo
Inizializzare lo sparse checkout: git sparse-checkout init --cone. Quindi impostare i pattern: git sparse-checkout set dir1 dir2. Verificare con: git sparse-checkout list. Usare --no-cone per pattern basati su espressioni regolari.
Esempio
git sparse-checkout init --coneCodici di errore correlati
error: Entry has been modified in the work treeerror: La voce è stata modificata nella working tree
Un'operazione Git è stata bloccata perché i file nella working tree sono stati modificati.
error: cannot rebase: You have unstaged changeserror: cannot rebase with unstaged changes
Git si rifiuta di eseguire il rebase perché nella working directory sono presenti modifiche non committate.
error: Your local changes would be overwrittenerror: Your local changes would be overwritten
Git si rifiuta di eseguire un'operazione perché sovrascritterebbe le modifiche locali non committate.
error: LFS object not founderror: LFS object not found
Un file tracciato da Git LFS non è stato scaricato dal server LFS.
You are in 'detached HEAD' stateStato HEAD staccato (detached HEAD)
HEAD punta a un commit specifico anziché a un branch, il che significa che i nuovi commit risulteranno orfani.
remote: error: GH006: Protected branch update failedremote: error: Protected branch update failed
Un push su un branch protetto è stato rifiutato a causa delle regole di protezione del branch.