LMXMN041:ximalaya will.wei$ git submodule add https://github.com/willbin/WeLib02.git Submodule Cloning into '/Users/will.wei/Works/ximalaya/Submodule'... remote: Counting objects: 48, done. remote: Compressing objects: 100% (36/36), done. remote: Total 48 (delta 21), reused 34 (delta 11), pack-reused 0 Unpacking objects: 100% (48/48), done. Checking connectivity... done. LMXMN041:ximalaya will.wei$
用命令行
git submodule add https://github.com/willbin/WeLib02.git Submodule
官方的这个方法经常会失败, 出现password问题. 建议用命令行搞定
https://confluence.atlassian.com/sourcetreekb/adding-a-submodule-subtree-with-sourcetree-785332086.html
http://stackoverflow.com/questions/1030169/easy-way-pull-latest-of-all-submodules