我正在使用 git 1.8.4 并尝试添加一个跟踪另一个存储库的主模块的子模块。我尝试按如下方式添加:
git submodule add -b master /path/to/myrepo.git
当我尝试添加它时出现以下错误
Cloning into 'myrepo.git'...
warning: You appear to have cloned an empty repository.
done.
fatal: Cannot update paths and switch to branch 'master' at the same time.
Did you intend to checkout 'origin/master' which can not be resolved as commit?
Unable to checkout submodule 'myrepo'
我不确定这意味着什么……有人可以解释一下吗?