2011-09-16 17 views
2

リモートブランチを2つまたは3つのリストに制限する({^ 1}のように.git/configを編集する)とき、すべての "refs"ディレクトリを消去します。git branch -avv {^ 2}制限付きブランチのクローン作成後にgit(-svn)のリモートトラッキングブランチを変更する

リモートブランチのリストでは、v2とv3のみがブランチとして認識されます。 これを修正する方法はありますか?それとも、私たちが一緒に仕事をしているかどうかにかかわらず、遠隔地にあるすべてのブランチを提示する "git way"ですか?

{^ 1}

[svn-remote "svn"] 
url = https://example.com/svn/repos/MyRepo/SubPath 
fetch = trunk:refs/remotes/trunk 
branches = branches/{v2,v3}:refs/remotes/* 

{^ 2}

* master   1234 [trunk: ahead 1] last msg master 
    remotes/v1  2345 last msg svn branch v1 
    remotes/v2  3456 last msg svn branch v2 
    remotes/v3  4567 last msg svn branch v3 
    remotes/v4  5678 last msg svn branch v4 
    remotes/trunk 6789 last msg svn trunk 

答えて

0
git branch -D -r remotes/v1 remotes/v4 remotes/trunk 
rm -rf .git/svn/refs/remotes/{v1,v4,trunk} 
+0

そのヒントをいただき、ありがとうございます。それらを削除すると削除されますので、参照できる範囲での参照は必要ありません。 –

関連する問題