由于IP更换了,visual svn server服务器地址变了
本来也连接不上了,需要进行相应的更改
第一步,查看本地svn连接信息
输入命令 svn info 得到如下结果
ApplematoMacBook-Air:yicike223 apple$ svn info
Path: .
URL: https://114.80.209.223/svn/site/trunk
Repository Root: https://114.80.209.223/svn/site
Repository UUID: db62ce96-9820-b543-8f08-1a3465dbc20c
Revision: 1
Node Kind: directory
Schedule: normal
Last Changed Author: VisualSVN Server
Last Changed Rev: 1
Last Changed Date: 2011-10-02 03:50:38 +0800 (日, 02 10 2011)
可以看到URL
第二步,更改至新的URL
执行命令
svn switch --relocate https://114.80.209.223/svn/site/trunk https://www.yicikesvn.com/svn/site/trunk
结果如下
Error validating server certificate for 'https://www.yicikesvn.com:443':
- The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
- The certificate hostname does not match.
Certificate information:
- Hostname: yicike-16b7fb0d
- Valid: from Sat, 01 Oct 2011 19:49:03 GMT until Tue, 28 Sep 2021 19:49:03 GMT
- Issuer: yicike-16b7fb0d
- Fingerprint: 33:05:83:bd:fb:e9:a1:76:dc:b9:92:41:f3:f9:b3:40:a7:35:1e:a8
(R)eject, accept (t)emporarily or accept (p)ermanently?
输入p 显示如下
Authentication realm: Subversion Repositories
Username: leo
Password for 'leo':
已经成功修改URL
第三步,执行第一步的命令,检查是否显示为新的URL了
svn info 显示如下
ApplematoMacBook-Air:yicike223 apple$ svn info
Path: .
URL: https://www.yicikesvn.com/svn/site/trunk
Repository Root: https://www.yicikesvn.com/svn/site
Repository UUID: db62ce96-9820-b543-8f08-1a3465dbc20c
Revision: 1
Node Kind: directory
Schedule: normal
Last Changed Author: VisualSVN Server
Last Changed Rev: 1
Last Changed Date: 2011-10-02 03:50:38 +0800 (日, 02 10 2011)