Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 7 使用mercurial throws的hg克隆;getaddrinfo失败";错误(windows 7)_Windows 7_Mercurial_Clone_Bitbucket - Fatal编程技术网

Windows 7 使用mercurial throws的hg克隆;getaddrinfo失败";错误(windows 7)

Windows 7 使用mercurial throws的hg克隆;getaddrinfo失败";错误(windows 7),windows-7,mercurial,clone,bitbucket,Windows 7,Mercurial,Clone,Bitbucket,我已经在BitBucket网站上创建了一个公共存储库。我可以从办公网络(LAN)外部运行克隆命令 但它在办公室网络中不起作用。我怀疑这与防火墙或代理设置有关。我可以从浏览器窗口(IE9/Chrome)访问URL 请帮忙解决这个问题。谢谢 命令: hg clone https://bitbucket.org/gbsandeep/test2 abort: error: getaddrinfo failed PS:我浏览了其他帖子,但没有任何帮助。听起来你可能需要告诉Mercurial你的代理设置

我已经在BitBucket网站上创建了一个公共存储库。我可以从办公网络(LAN)外部运行克隆命令

但它在办公室网络中不起作用。我怀疑这与防火墙或代理设置有关。我可以从浏览器窗口(IE9/Chrome)访问URL

请帮忙解决这个问题。谢谢

命令:

hg clone https://bitbucket.org/gbsandeep/test2

abort: error: getaddrinfo failed

PS:我浏览了其他帖子,但没有任何帮助。

听起来你可能需要告诉Mercurial你的代理设置是什么。“mercurial proxy”的首个成功案例:


如果您需要确定要使用哪些设置,您可能应该查看IE设置,例如,通过转到
Internet属性|连接| LAN设置
对话框。

只需删除
http\U proxy
环境变量即可。(在头痛了5个小时后为我工作)。

请先检查您是否可以直接访问存储库。e、 对于我来说,从web浏览器中,解决方案是设置
http\u代理
环境变量。

如果您发现自己在这个页面上,因为您在使用带有用户名的
hg git
插件时遇到了
getaddr
错误,那么您很可能遇到了错误

因此:


(无法解决原始用户的问题,但可能是导致相同症状的原因)。

在PyCharm mercurial clone对话框中,通过启用公司vpn并设置在Win 10中自动检测代理来解决该问题。然而,PyCharm带来了一些新的例外,如:

下午6:03克隆失败 从此处克隆您的url失败。 **可能已断开的第三方扩展HG4IDEA Compression遇到未知异常 **它支持Mercurial的未知版本。 **请禁用HG4IDEA压缩并重试您的操作。 **如果修复了错误,请向扩展作者报告。 **Python 2.7.13(v2.7.13:a06454b1afa1,2016年12月17日,20:53:40)[MSC v.1500 64位(AMD64)] **Mercurial分布式SCM(版本4.7.1) **加载的扩展:strip、mq、hg4idea压缩 回溯(最近一次呼叫最后一次):
文件“hg”,第41行,在

中,谢谢jjlin。这是一个直接的命令。我现在觉得自己很傻:)如果你把URL从错误的地方克隆过来,它也会给你这个错误,在我的例子中,我把域名拼错了。谁会想到在
hg git
的情况下,在repo name中使用用户名会失败呢。。。这绝对是一个正确的解决方案。当我从URL中删除用户名时,它就起作用了ssh://username@bitbucket.org/username/reponame.git删除第一个用户名有助于修复错误ssh://bitbucket.org/username/reponame.git
$ hg clone https://foo@stash/
abort: error: getaddrinfo failed
$ hg clone https://stash/
http authorization required for http://stash.....
realm: Atlassian Stash
user: ...