Tuesday, January 25, 2011

How to use Subversion (SVN) through a proxy

1. Open the servers file in any text editor

This file is located here (on Mac OS X or Linux):
~/.subversion/servers=
or here (on Windows)
%APPDATA%\Subversion\servers

2. Find [global] section

3. Write (or uncomment) the following lines:
[global]
http-proxy-host = proxy.company.com
http-proxy-port = 3128

In addition, write/uncomment the following lines if your HTTP proxy requires authentication:
[global]
http-proxy-host = proxy.company.com
http-proxy-port = 3128
http-proxy-username = username
http-proxy-password = password

You can also specify the proxy bypass servers:
[global]
http-proxy-host = proxy.company.com
http-proxy-port = 3128
http-proxy-username = username
http-proxy-password = password
http-proxy-exceptions = svn1.company.com, svn2.company.com

No comments:

Post a Comment