开发者

Why are all of my git submodles not being cloned when I do git clone --recursive?

I tried to export my emacs and vim configurations into their own repositories, and added them as submodles to a superrepository. However when I try to do

git clone --recursive 

to clone the superrepository, it only pulls in the ext/rsense submodule and ignores the other two. What am I doing wrong? I am using git 1.7.0.4

Here's the .gitmodules for my superrepository

[submod开发者_JAVA百科ule "vim"]
        path = vim
        url = https://github.com:sid137/.vim.git
[submodule ".emacs.d"]
        path = .emacs.d
        url = https://github.com:sid137/emacs.git
[submodule "ext/rsense"]
        path = ext/rsense
        url = https://github.com/m2ym/rsense.git


Similar question as

Git will not init/sync/update new submodules

I just removed my .gitmodules and readded them manually also using

git submodule add repo local_path

and it mysteriously worked

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜