error: sparse-checkout is not enablederror: sparse-checkout tidak diaktifkan
Operasi sparse-checkout dicoba tetapi fitur tersebut belum diaktifkan.
Apa penyebab error ini
Anda mencoba memodifikasi pola sparse-checkout tanpa terlebih dahulu mengaktifkan fitur sparse-checkout. Sparse checkout harus diinisialisasi sebelum dapat dikonfigurasi.
Cara memperbaikinya
Inisialisasi sparse checkout: git sparse-checkout init --cone. Lalu tetapkan pola: git sparse-checkout set dir1 dir2. Verifikasi dengan: git sparse-checkout list. Gunakan --no-cone untuk pola berbasis regex.
Contoh
git sparse-checkout init --coneKode Error Terkait
error: Entry has been modified in the work treeerror: Entry telah dimodifikasi di working tree
Operasi Git diblokir karena file di working tree telah dimodifikasi.
error: cannot rebase: You have unstaged changeserror: cannot rebase with unstaged changes
Git menolak untuk melakukan rebase karena ada perubahan yang belum di-commit di direktori kerja.
error: Your local changes would be overwrittenerror: Your local changes would be overwritten
Git menolak melakukan operasi karena akan menimpa perubahan lokal yang belum di-commit.
error: LFS object not founderror: LFS object not found
File yang di-track oleh Git LFS tidak dapat diunduh dari server LFS.
You are in 'detached HEAD' stateStatus Detached HEAD
HEAD menunjuk ke commit tertentu alih-alih ke branch, sehingga commit baru akan menjadi yatim (orphaned).
remote: error: GH006: Protected branch update failedremote: error: Protected branch update failed
Push ke protected branch ditolak karena aturan perlindungan branch.