开发者

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. So what i am wonder开发者_高级运维ing is what to I need to do for git to look at the new remote path so i can continue like before. 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 :

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.

Thanks in advance.


You need to change the 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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜