1

github を使用して dotvim を保存してい ます https://github.com/mingchaoyan/dotvim

私は、vim-plugins を管理するために Pathogen を選択しました。vimタグを生成するために、病原体は私に追加するように指示します

call pathogen#helptags()

vimrcに。各プラグインのタグを生成します。入力すると

 git status

git は、追跡されていないファイルをいくつか示しています。それらは helptags によって生成されたタグです。

作業コピーをきれいにするために、私はそうします

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 を管理するにはどうすればよいですか?</p>

4

0 に答える 0