我使用github来存储我的dotvim https://github.com/mingchaoyan/dotvim
病原体是我选择管理vim-plugins。为了生成vim标签,病原体告诉我添加
call pathogen#helptags()
进入vimrc。它为每个插件生成标签。当我输入
git status
git给我一些未跟踪的文件。它们是由帮助标签生成的标签。
为了使我的工作副本干净,我做
git add xxx/doc/tags
git ca ...
git push
但出现了另一个问题。 当我尝试在另一台计算机上克隆dotvim时,
git clone https://github.com/mingchaoyan/dotvim
...
git submodule init
git submodule update
fatal: reference is not a tree: 0cca328d1a6b12422026e62c3fb8951e22f70b80
fatal: reference is not a tree: 812b8c9e59a5e917f1e206ce4b3d2bcf3391bb11
fatal: reference is not a tree: a3d7e4533871e76b9cadd85177dc84aad7503154
fatal: reference is not a tree: 82a3aa42ff799de33739685551771decd05157de
fatal: reference is not a tree: ef95accdee67b43396fcc65cb65eed0d9668c9de
fatal: reference is not a tree: cb9b7a395a79dd5633eeb789bc809faf6977118d
Unable to checkout '0cca328d1a6b12422026e62c3fb8951e22f70b80' in submodule path 'bundle/DrawIt'
Unable to checkout '812b8c9e59a5e917f1e206ce4b3d2bcf3391bb11' in submodule path 'bundle/SingleCompil
e'
Unable to checkout 'a3d7e4533871e76b9cadd85177dc84aad7503154' in submodule path 'bundle/lookupfile'
Unable to checkout '82a3aa42ff799de33739685551771decd05157de' in submodule path 'bundle/snipmate'
Unable to checkout 'ef95accdee67b43396fcc65cb65eed0d9668c9de' in submodule path 'bundle/taglist'
Unable to checkout 'cb9b7a395a79dd5633eeb789bc809faf6977118d' in submodule path 'bundle/vcscommand'
这些是我刚添加的插件。
我可能知道原因是我的回购中的子模块与带有"标记"的原始模块不同。 如何在没有上述问题的情况下管理带病原体和gitsubmodule的vim-plugins?