to delete single file changes from local machine 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