我有两个子模块xxx,后来我在这篇文章yyy之后删除了子模块xxx
仍在circleci运行:
git submodule update --init
我得到结果:
Submodule 'xxx' (git@bitbucket.org:z/xxx) registered for path 'xxx'
Submodule 'yyy' (git@bitbucket.org:z/yyy) registered for path 'yyy'
Cloning into '/home/circleci/project/xxx'...
Cloning into '/home/circleci/project/yyy'...
Submodule path 'xxx': checked out 'hash**'
Submodule path 'yyy': checked out 'hash**'
但是运行:
git submodule
我只看到一个:
git submodule
hash** yyy (heads/master)
该.gitmodules文件仅显示 yyy
[submodule "yyy"]
path = yyy
url = git@bitbucket.org:z/yyy.git
该.git/config文件虽然显示了它们
[submodule "yyy"]
url = git@bitbucket.org:z/yyy.git
active = true
[submodule "xxx"]
url = git@bitbucket.org:z/xxx.git
active = true
如何正确删除子模块 xxx