Git Eliminar el archivo remoto Mantener local
# for single file
git rm --cached myfile
# for directory file
git rm --cached --r myfile
biglio23
# for single file
git rm --cached myfile
# for directory file
git rm --cached --r myfile
For a single file:
git rm --cached mylogfile.log
and for a single directory:
git rm --cached -r mydirectory
#for directory
git rm --cached -r myfile