Remove a file from a Git repository without deleting it from the local filesystemFor single file:

git rm --cached myremotefiletodelete.log

For single directory:

git rm --cached -r myremotedirectortytodelete