SVN主机搬移后Client端的的处理方式(relocate)【转载】

當 svn 主機 IP 更動,或者更換網址,底下 Client 端的工作版本就無法依據之前的 Check out 網址更新,以下針對在 Windows 的 TortoisesSVN 以及 Linux 底下的 svn 分別說明實際處理方式.

1 Windows 的 TortoisesSVN

這部份很簡單,直接選用 TortoisesSVN 選單內的 Relocate 來更改

2 Linux 的 svn

如果使用 Linux 的 svn 命令列方式,則採用 svn switch 命令語法 

例如: /home/trybox/trybox_source 內原本 Check Out 的 SVN 來源是 http://61.67.71.95/repos/trybox/Source 希望更改成正確的 SVN 網址 http://tryboxap1.ichiayi.com/repos/trybox/Source 以下是實際執行程序 

cd /home/trybox/trybox_source
svn cleanup
svn switch --relocate http://61.67.71.95/repos/trybox/Source http://tryboxap1.ichiayi.com/repos/trybox/Source .

【转载自】http://www.ichiayi.com/wiki/tech/svnswitch

posted on 2010-11-10 18:32  sulpha  阅读(392)  评论(0编辑  收藏  举报

导航