【发布时间】:2016-05-14 07:52:00
【问题描述】:
on softwarecarpentry他们说输入以下命令序列是个坏主意:
cd # return to home directory
mkdir planets # make a new directory planets
cd planets # go into planets
git init # make the planets directory a Git repository
mkdir moons # make a sub-directory planets/moons
cd moons # go into planets/moons
git init # make the moons sub-directory a Git
为什么这是一个坏主意。
【问题讨论】:
-
“为什么这样做是个坏主意?” - 你应该弄清楚。为什么不尝试并找出答案?旁注:如果您想在另一个 repo 中使用 repo,请查找 "git submodules"
标签: git version-control