Date: 7/3/2015
生成仓库目录
mkdir -p development/hobby-project/my-first-git-repository
cd development/hobby-project/my-first-git-repository
mkdir -p development/hobby-project/my-first-git-repository
cd development/hobby-project/my-first-git-repository
本文大纲:
Git 可将一个 Git repository 作为另外一个 Git repository 的子目录,这允许在你的项目中引用另一个项目,并将两个项目分开维护。假设我们希望将一个现有的 Git repository 作为一个 submodule 添加到当前工作项目上,执行 git submodule add 并跟上绝对或相对 url 作为参数来添加 submodule。