且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何为 svn 配置 HTTP 代理

更新时间:2023-11-22 23:06:58

你看过 FAQ 条目 如果我在代理后面怎么办??

Have you seen the FAQ entry What if I'm behind a proxy??

... 编辑您的服务器"配置文件以指示要使用的代理.文件位置取决于您的操作系统.在 Linux 或 Unix 上,它位于目录~/.subversion"中.在 Windows 上,它位于%APPDATA%\Subversion"中.(试试echo %APPDATA%",注意这是一个隐藏目录.)

... edit your "servers" configuration file to indicate which proxy to use. The files location depends on your operating system. On Linux or Unix it is located in the directory "~/.subversion". On Windows it is in "%APPDATA%\Subversion". (Try "echo %APPDATA%", note this is a hidden directory.)

对我来说,这包括取消注释和设置以下几行:

For me this involved uncommenting and setting the following lines:

#http-proxy-host=my.proxy
#http-proxy-port=80
#http-proxy-username=[username]
#http-proxy-password=[password]

在命令行上: nano ~/.subversion/servers

On command line : nano ~/.subversion/servers