remove file from git without delete code example
Example: git remove without deleting
For a single file:
git rm --cached mylogfile.log
and for a single directory:
git rm --cached -r mydirectory
For a single file:
git rm --cached mylogfile.log
and for a single directory:
git rm --cached -r mydirectory