Remove a given folder from a Git repository…
git rm -r cache/
Actually, in git 22.214.171.124, that seems to remove only the files from that folder and its sub folders. The directory and the sub-directories are all still there.
Git doesn’t care about empty directories, and leaves them behind in case you need them, but they are not in the repository.
So the thing to do is rmdir.
Odd, after using svn, but apparently by design.
As of git 126.96.36.199 it will remove the directory too, as long as there are no files left behind as a result of .gitignore.
Your email address will not be published. Required fields are marked *
Save my name, email, and website in this browser for the next time I comment.