git delete remote file but keep local 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