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$
用命令行html
git submodule add https://github.com/willbin/WeLib02.git Submodule
官方的這個方法常常會失敗, 出現password問題. 建議用命令行搞定git
https://confluence.atlassian.com/sourcetreekb/adding-a-submodule-subtree-with-sourcetree-785332086.htmlgithub
http://stackoverflow.com/questions/1030169/easy-way-pull-latest-of-all-submodulesspa