git submodule

作者: Git小助手 | 来源:发表于2016-12-16 21:20 被阅读14次

1.第一次添加submodule

git submodule add xxx.git

修改.gitsubmdule, 如果没有,添加.gitsubmdule

[submodule "CommonUI"]

path = CommonUI

url = https://github.com/xxx/CommonUI.git

2.获取含有submodule的项目

git clone url

git submodule update --init --recursive

3.删除Submodule,

删除.gitmodules 对应的module, 删除Submodule对应的应用

然后手动删除 

git rm --cached XXX(submodule filter)

rm XXX

git add .

git push

相关文章

网友评论

    本文标题:git submodule

    本文链接:https://www.haomeiwen.com/subject/amqomttx.html