git status
muestra el siguiente post:
lit/1252-a-comparison-between-neural-networks-and-other-statistical-techniques-for-modeling-the-relationship-between-tobacco-and-alcohol-and-cancer.pdf: File name too long On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working tree clean.
Este file fue eliminado, lo cual puedo confirmar con un siguiente command:
git ls-files --deleted
Salida:
lit/1252-a-comparison-between-neural-networks-and-other-statistical-techniques-for-modeling-the-relationship-between-tobacco-and-alcohol-and-cancer.pdf
Cuando bash eliminarlo con git ls-files --deleted | xargs git rm
git ls-files --deleted | xargs git rm
no tiene ningún efecto, pero no puedo confirmar cambios en mi repository hasta que elimine este file.
También he intentado utilizar: git config --system core.longpaths true
pero sin éxito.
Me pregunto cómo resolver este problema?
git rm --cached
es el command que estás buscando.
Esta respuesta brinda más detalles sobre los commands agregar / eliminar de git