Instantly share code, notes, and snippets.
git rm --cached mylogfile.log
For a directory:
git rm --cached -r mydirectory