簡體   English   中英

如何更新移動的git-svn遠程分支的路徑

[英]How to I update the path to a moved git-svn remote branch

我已經使用git和git-svn已有一段時間了,但是我們已經將svn倉庫服務器移到了另一個位置。 所以我想知道的是,我需要做什么來讓git查看新的遠程路徑,以便我可以像以前一樣繼續操作。 我試圖在配置中更改URL以查看新的回購,但是當我嘗試git svn rebase時,我得到了:

Unable to determine upstream SVN information from working tree history

svn repo完全相同,但是只是將位置移到了另一個URL。

提前致謝。

您需要更改svn-remote.svn.url 你可以這樣看

% git config --get svn-remote.svn.url

並設置如下:

% git config svn-remote.svn.url http://foo/bar

或通過您的編輯器:

% git config -e

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM