SVN and renaming the server it's running on

雨燕双飞 提交于 2019-12-11 04:04:55

问题


I'm running VisualSVN as my SVN server and using TortoiseSVN as the client. I've just renamed the server from mach1 to mach2 and now can't use SVN because it's looking for the repositories at http://mach1:81/ instead of the new name http://mach2:81/

Any idea how to fix this?


回答1:


Use the "relocate" option provided by Tortoise SVN. Just right click on the upper-most checked out folder, select relocate, and then enter the new URL.




回答2:


Just change the address of the svn repository using switch --relocate command.

$svn switch --relocate file:///tmp/repos file:///tmp/newlocation.
In your case it would be $svn switch --relocate http://mach1:81/ http://mach2:81/




回答3:


First google hit: svn sw --relocate svn://example1.com:22/name http://example2.com:24/edc



来源:https://stackoverflow.com/questions/69646/svn-and-renaming-the-server-its-running-on

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!