remote file from remote but dont delete git code example
Example: git remove remote file keep local
# for single file
git rm --cached myfile
# for directory file
git rm --cached --r myfile
# for single file
git rm --cached myfile
# for directory file
git rm --cached --r myfile