Saltar al contenido
Errores de GitError
error: sparse-checkout is not enabled

error: sparse-checkout no está habilitado

Se intentó una operación de sparse-checkout pero la función no está habilitada.

gitlinuxwindowsmacos

Qué causa este error

Intentaste modificar patrones de sparse-checkout sin antes habilitar la función de sparse-checkout. El sparse checkout debe inicializarse antes de poder configurarse.

Cómo solucionarlo

Inicializa el sparse checkout: git sparse-checkout init --cone. Después define los patrones: git sparse-checkout set dir1 dir2. Verifícalo con: git sparse-checkout list. Usa --no-cone para patrones basados en regex.

Ejemplo

git sparse-checkout init --cone
Documentación Oficial

Códigos de Error Relacionados