我遇到一个奇怪的问题,我试图删除 Git 中出现的名为 test_directory
的目录。但是,它不会出现在本地,因为我手动删除了它。
因此,此命令 git rm -r --cached test_directory
将不起作用,因为它“不匹配任何文件”。对此有什么解决方案吗?
最佳答案
好的,所以找到了解决方案。我 git stashed,然后 git commit -am "WIP"然后 git pushed。
关于git - 删除 Git 中不在本地出现的文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33759226/