gpt4 book ai didi

linux - SVN 命令不适用于 Cygwin

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:35:29 30 4
gpt4 key购买 nike

我试图通过 CYGWIN 访问源代码存储库,就在我通过 Windows 资源管理器成功 check out 文件之后,但它一直给我一个“在 CYGWIN 中找不到主机”错误。

尝试在 CYGWIN 中执行 svn co 命令进行结帐。

在 SVNTortoise 网络设置中,我已经包含了我的代理服务器和用户名/密码。

请让我知道我在这里缺少什么。以下是我执行此操作时来自 cygwin bash 的确切场景:

bash-3.2$ cd
bash-3.2$ svn --version
svn, version 1.6.3 (r38063)
compiled Jul 9 2009, 10:30:30

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
- handles 'http' scheme
- handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- with Cyrus SASL authentication
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
- handles 'http' scheme
- handles 'https' scheme

bash-3.2$ svn co http://repositoryname/checkoutfile

svn: OPTIONS of 'http://repositoryname/checkoutfile': Could not resolve hostname `repositoryname': Unknown host (htp://repositoryname.com)

最佳答案

据我所知,Cygwin 工具不会使用您为 TortoiseSVN 设置的代理设置。

在运行命令之前尝试在您的 shell 中设置代理:

export http_proxy="http://<user>:<password>@<proxy>:<port>"
svn ...

如果可行,您可以将 export ... 行添加到您的 .bash_profile

关于linux - SVN 命令不适用于 Cygwin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19998959/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com