how to remove a git file from list but dont delete the file 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