user3096803
user3096803

Reputation:

Git has no idea files are the repository. I cannot remove them

I am in a bit of a pickle with my remote master branch. I am working on a project with a guy who is new to version control systems and he made several commits with an empty .gitignore file. This resulted in many different binaries being pushed into /bin/ and /obj/ directories. I have successfully removed all of the files in the dev branch by using the git rm -rf --cached <file/directory> command, but git does not see the directories in the index of master even though they exist in the remote repository and my local repository.

Every time I try to git rm -rf --cached <file/directory/ on the master branch, git tells me this fatal: pathspec 'EscapeTheHordeDAL/bin/' did not match any files. How can I resolve this and remove these directories from the repository when git doesn't even see them?

Upvotes: 3

Views: 3449

Answers (0)

Related Questions