How can I remove this file from the repo without deleting my local copy of the file?
So, for a single file:
git rm --cached mylogfile.log
and for a single directory:
git rm --cached -r mydirectory