基本上,我有一个回购,我克隆了另一个回购。现在,我想将该子回购添加为父回购的子模块,但是当我在父回购上执行git submodule add http://sub-repo path-to-sub-repo时,它会给出这个错误。fatal: '/path-to-sub-repo' does not have a commit checked out
我认为这意味着<e
--他们说输入以下命令序列是个坏主意:mkdir planets # make a new directory planetsgit init # make the planets directory a Git repositorycd moons # go into planets/moons
git in