A philosopher programmer who specializes in backend development and stoicism.
3 thoughts on “Remove a Folder from Git”
Actually, in git 1.5.0.4, that seems to remove only the files from that folder and its sub folders. The directory and the sub-directories are all still there.
OK.
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.
Actually, in git 1.5.0.4, that seems to remove only the files from that folder and its sub folders. The directory and the sub-directories are all still there.
OK.
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 1.7.9.5 it will remove the directory too, as long as there are no files left behind as a result of .gitignore.