开发者

The svn repository I've imported into git using git-svn has moved

开发者 https://www.devze.com 2022-12-18 13:06 出处:网络
I\'m working with a git repository using git-svn. Everything went fine until the day the maintainers of the svn repository decided to move the repository to a different URL.

I'm working with a git repository using git-svn. Everything went fine until the day the maintainers of the svn repository decided to move the repository to a different URL.

How can I tell my git-svn client to fetch from the new svn repository?

I've changes the svn URL in the svn-remote of .git/config but now开发者_如何学C I get the following error:

svn-remote.svn.url already set: https://old.svn.repo
wanted to set to: https://new.svn.repo


There may be trouble...since git-svn embeds the SVN url into each commit message. Hopefully that isn't a problem as well. You may need to rewrite your entire history to change all of the commit messages (using git filter-branch). But that could cause trouble if you've pushed anywhere else outside of back to SVN.


You might also need to change the .git/svn/.metadata file.

0

精彩评论

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

关注公众号