开发者

"warning: unable to unlink" when dealing with git submodules

开发者 https://www.devze.com 2022-12-14 02:19 出处:网络
I installed a submodule on branch try-submodules when trying to checkout the master branch (which had no submodules), I get the following w开发者_运维问答arning:

I installed a submodule on branch try-submodules when trying to checkout the master branch (which had no submodules), I get the following w开发者_运维问答arning:

warning: unable to unlink public/docs/blueprint: Operation not permitted Switched to branch 'master'

Browsing the file directory, I can see that everything checked out just fine EXCEPT my blueprint subdirectory still exists, even though it is not present in the master branch.

I've found a few discussions of this problem: http://cygwin.com/ml/cygwin/2009-11/msg00756.html, but no solutions.

Any ideas?


i have the same problem, as a workaround you can remove the submodule dir with 'rm -rf' (force is important here) and checkout the branch again

0

精彩评论

暂无评论...
验证码 换一张
取 消