Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我输入:
git rm -r --cached bin/
我得到以下信息:
致命:pathspec 'bin/' 不匹配任何文件
文件夹存在。我不知道为什么这不起作用。我找到了几个答案说这是正确的语法。
好的,首先确保它实际上已添加到索引中:
git add bin
然后执行您的命令将其删除:
如果问题仍然存在:
git reset --hard