Remove a directory from a remote Git repo without deleting it locally.

Stop tracking an entire directory. This is useful after having added the directory to .gitignore.

git rm -r --cached <your directory>