سؤال

When I type:

git rm -r --cached bin/

I get the following:

fatal: pathspec 'bin/' did not match any files

The folder exists. I don't know why this is not working. I've found several answers that say this is the correct syntax.

هل كانت مفيدة؟

المحلول

Alright, first make sure that it's actually added to the index:

git add bin

Then execute your command to remove it:

git rm -r --cached bin/

If the problem persists:

git reset --hard

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top