2013-10-28 34 views
0

我試圖複製/讀取與SVN分支混帳的svn:混帳SVN已經設置...想設置爲:

git config --add svn-remote.stable-2012-03-29.url https://some_host/branch 
git config --add svn-remote.stable-2012-03-29.fetch :refs/remotes/stable-2012-03-29 
git svn fetch stable-2012-03-29 

這給了我此錯誤消息:

svn-remote.stable-2012-03-29.url already set: https://some_host/branch/ wanted to set to: https://some_host/ 

我知道,我也許可以通過重新獲取從頭所有SVN回購解決這個問題,但這需要幾個月甚至幾年的時間(因回購的大小)。

那麼,有什麼辦法呢?

回答

2

所以,我想通了,如何解決這個問題,以下工作:

1)我克隆樹幹從頭

git svn clone -T trunk/ https://some_host --revision 1104830:HEAD 

2)再加入分支我想在.git/config:

fetch = branches/proj/proj-stable-2013-08-14:refs/remotes/proj-stable-2013-08-14 
獲取

3)然後運行

git svn fetch 

等待沒有任何輸出約10小時,從命令(這是最困難的一步,由於沒有輸出),之後開始的git獲取版本!

0

編輯的.git /配置手動文件。

+0

Git會獲取所有回購,我不想等待一年。 – Void