公司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