git remove remote file keep local

Shell
# for single file
git rm --cached myfile

# for directory file
git rm --cached --r myfile
Source

Also in Shell: