How to remove a directory from git repository?
Remove directory from git and local You could checkout ‘master’ with both directories; Remove directory from git but NOT local As mentioned in the comments, what you usually want to do is remove this directory from git but not delete it entirely from the filesystem (local) In that case use: