公司svn服务器在海外,有时候迫不得已svn也得设置代理
网上查了好长时间都只有windows下如何设置,mac系统下的教程很少。
1.在windows下设置方法如下
找到C:\DocumentsandSettings\youruserName\ApplicationData\Subversion这个目录下的servers文件,用任意一个文本编辑器打开,找到类似于如下的文字:
[global]
#http-proxy-exceptions=*.exception.com,www.internal-site.org
#http-proxy-host=proxy2.some-domain-name.com
#http-proxy-port=9000
#http-proxy-username=defaultusername
将#http-proxy-host
#http-proxy-port这两行前面的#号去掉,并将=号右边的值分别改为你的代理服务器地址和端口号即可。
2 在mac下设置方法如下
打开finder ,前往---》前往文件夹
~/.subversion 编辑 servers 文件
# http-proxy-exceptions = *.exception.com, www.internal-site.org
http-proxy-host = my.proxy.server
http-proxy-port = 8080
# http-proxy-username = defaultusername
# http-proxy-password = defaultpassword
# http-compression = no
# http-auth-types = basic;digest;negotiate
# No http-timeout, so just use the builtin default.
# No neon-debug-mask, so neon debugging is disabled.
# ssl-authority-files = /path/to/CAcert.pem;/path/to/CAcert2.pem