给SVN设置代理

XP系统在C:\Documents and Settings\Administrator\Application Data\Subversion目录下

win7及以上系统在C:\Users\admin\AppData\Roaming\Subversion目录下

PS:最好显示隐藏的文件,方法参见:http://www.cnblogs.com/fanqf/p/9012706.html

1、在server配置文件下找到[global]节点

然后取消下面行的#号(#号为注释)
http-proxy-host = 172.100.1.28  代理ip
http-proxy-port = 8080   代理端口
http-proxy-username = haoxw   svn用户名
http-proxy-password = haoxw12   svn密码

配置好后,就给SVN设置好了代理。

2、如果只想给特定的域名设置代理,可以使用另一个section来配置代理:

 [groups]
    group1 = *.abc.com 需要设置代理的域名
    # othergroup = repository.blarggitywhoomph.com
    # thirdgroup = *.example.com
     
    ### Information for the first group:
    [group1]
    http-proxy-host = proxy.myoffice.com 代理ip
    http-proxy-port = 8080 代理端口
    # http-proxy-username = blah
    # http-proxy-password = doubleblah
    # http-timeout = 60

如上就是配置的一个节选,是给abc.com这个域配置了一个代理。

posted @ 2018-05-09 10:15  fanqf  阅读(1020)  评论(0编辑  收藏  举报