由於代碼分了兩個小組管理,一部分代碼使用跨平臺語言實現,一部分使用原生實現。ios
因此使用Git submodule 來進行管理。git
1,查看/更新 子模塊github
git submodule add ssh://git@10.10.10.xx:443/xxx-iOS ios #添加子模塊$
查看子模塊$ git submodule (status)#
git submodule foreach git pull
$ git submodule update #更新項目內子模塊到最新版本
$ git submodule update --remote #更新子模塊爲遠程項目的最新版本
$
libb
的 dev
分支:$ git config -f .gitmodules submodule.liba.branch dev $ git submodule update --remote
2,
刪除子模塊vim
$ git rm --cached assets $ rm -rf assets
.gitmodules
文件中相關子模塊信息[submodule "assets"]
path = assets
url = https://github.com/maonx/vimwiki-assets.git
.git/config
中的相關子模塊信息[submodule "assets"]
url = https://github.com/maonx/vimwiki-assets.git
.git
文件夾中的相關子模塊文件$ rm -rf .git/modules/assets
另外一說
git rm --cached pod-library rm -rf pod-library rm .gitmodules
OVERruby
http://www.javashuo.com/article/p-owdrsccp-kz.html bash