我有git:https://github.com/bbialek/dotfiles,我想为vim的病原体插件创建子模块。
cd ~/dotfiles/vim
git submodule add https://github.com/tpope/vim-pathogen .vim上面写着:
‘’vim/.‘vim’已经存在于索引中。
是因为我已经在./dotfiles/vim/.vim/bundle/*中有子模块了吗?
我的.gitmodules
[submodule "vim/.vim/bundle/nerdtree"]
path = vim/.vim/bundle/nerdtree
url = https://github.com/scrooloose/nerdtree
[submodule "vim/.vim/bundle/vim-autoformat"]
path = vim/.vim/bundle/vim-autoformat
url = https://github.com/Chiel92/vim-autoformat
[submodule "vim/.vim/bundle/vim-colors-solarized"]
path = vim/.vim/bundle/vim-colors-solarized
url = https://github.com/altercation/vim-colors-solarized
[submodule "vim/.vim/bundle/vim-sensible"]
path = vim/.vim/bundle/vim-sensible
url = https://github.com/tpope/vim-sensible
[submodule "vim/.vim/bundle/YouCompleteMe"]
path = vim/.vim/bundle/YouCompleteMe
url = https://github.com/Valloric/YouCompleteMe
[submodule "tmux/.tmux/plugins/tpm"]
path = tmux/.tmux/plugins/tpm
url = https://github.com/tmux-plugins/tpm发布于 2016-09-24 13:07:54
不能在声明的子模块路径中注册子模块(如vim/.vim/bundle/nerdtree)。
由于已经使用了.vim的多个子模块,因此需要为.vim子模块回购使用不同的文件夹。
https://stackoverflow.com/questions/39675387
复制相似问题