SVN: Could not resolve hostname

svn co http://src.chromium.org/svn/trunk/tools/depot_tools

svn: OPTIONS of 'http://src.chromium.org/svn/trunk/tools/depot_tools': Could not resolve hostname `src.chromium.org': No such host is known.
(
http://src.chromium.org)

我是通过代理上网,所以需要为SVN设置代理:
- Windows 7
C:\Users\%UserName%\AppData\Roaming\Subversion
找到servers文件,用记事本打开,找到以下代码:
[global]
# http-proxy-exceptions = *.exception.com, www.internal-site.org
# http-proxy-host = proxy.abc.com
# http-proxy-port = 8081
# http-proxy-username = defaultusername
# http-proxy-password = defaultpassword
# http-compression = no
# http-auth-types = basic;digest;negotiate
将上述红色部分改成使用的代理,并去掉注释即可,如:
http-proxy-host = myproxy
http-proxy-port = 80

然后就可以正常使用svn了。

再然后就可以gclient sync了!!!

你可能感兴趣的:(SVN,subversion)