繁体   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