简体   繁体   English

如何更新移动的git-svn远程分支的路径

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

I have been using git and git-svn for a while now but we have moved out svn repository server to another location. 我已经使用git和git-svn已有一段时间了,但是我们已经将svn仓库服务器移到了另一个位置。 So what i am wondering is what to I need to do for git to look at the new remote path so i can continue like before. 所以我想知道的是,我需要做什么来让git查看新的远程路径,以便我可以像以前一样继续操作。 I have tried changing the url in config to look at the new repo but then when i try git svn rebase I just get : 我试图在配置中更改URL以查看新的回购,但是当我尝试git svn rebase时,我得到了:

Unable to determine upstream SVN information from working tree history

The svn repo is exactly the same but has just moved locations to another url. svn repo完全相同,但是只是将位置移到了另一个URL。

Thanks in advance. 提前致谢。

You need to change the svn-remote.svn.url . 您需要更改svn-remote.svn.url You can view it like so 你可以这样看

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

and set it like this: 并设置如下:

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

or via your editor: 或通过您的编辑器:

% git config -e

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM