Remove from a Git repository without deleting it from the local filesystem – via: Stack Overflow
Posted by jpluimers on 2016/12/29
For a file:
git rm --cached mylogfile.log
For a directory:
git rm --cached -r mydirectory
Thanks bdonlan for answering that: Remove a file from a Git repository without deleting it from the local filesystem – Stack Overflow
–jeroen
Leave a Reply