Git - Common Operations
Only Delete from Git
To remove a file or directory from Git without deleting it locally (source):
git rm --cached -r directory_to_remove
To remove a file or directory from Git without deleting it locally (source):
git rm --cached -r directory_to_remove