如何为 svn 配置 HTTP 代理 [英] How to configure a HTTP proxy for svn

查看:74
本文介绍了如何为 svn 配置 HTTP 代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想检查存储库中的代码 http://code.sixapart.com/svn/perlbal/ .我只能通过设置代理来访问存储库 url.我想如果我想通过 svn 从同一个 URL 获取代码,我也需要配置一个代理.那么你们中的任何人都可以告诉我如何在 svn 中配置 HTTP 代理吗?

I want to check code from the repository http://code.sixapart.com/svn/perlbal/ . I can only access the the repository url by setting a proxy. I guess if I want to get the code from the same URL by svn I need to configure a proxy, too. So does anyone of you could tell me how to configure a HTTP proxy in svn?

顺便说一句,我在Linux下使用命令行svn客户端.

By the way, I use the command-line svn client under Linux.

推荐答案

你看过 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

这篇关于如何为 svn 配置 HTTP 代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆