I'm working in a git repository on Windows 10, and I have a folder named "Client" - I'm trying to completely delete it and all files inside it from my local repository. I'm inside the branch that I want it deleted from, and I ran the following command:
git rm -r -f .\Client\
It removed a lot of the folders and files inside Client, but there are still folders and files left. So I tried running it again, and I get the following message:
fatal: pathspec '.\Client\' did not match any files
What gives??
git rm
won't touch untracked files, so it's possible that after a call to git rm
, the directory remains in the working copy, possibly with some files still in it.