无法从Mercurial存储库中推送/拉取-中止:错误:远程主机强行关闭了现有连接 [英] can't push/pull from mercurial repository - abort: error: An existing connection was forcibly closed by the remote host
问题描述
我计划将Mercurial用于新项目,但是在访问bitbucket存储库时遇到一些问题.我是新手,但是以前使用过git.
I am planning to use mercurial for a new project but I'm having some problem accessing the bitbucket repository. I'm new to mercurial, but I have used git previously.
在执行hg克隆或推送操作时出现以下错误:
I get the following error when peforing a hg clone or push:
中止:错误:远程主机强行关闭了现有连接
只有在使用工作电脑时才会出现此问题,从家用电脑访问存储库时,我可以克隆并推送就好了,有什么主意,是否需要配置一些防火墙设置?
I only have this problem when using my work pc, when accessing the repository from my home pc I can clone and push just fine, any ideas, is there some firewall setting that needs to be configured?
我在两台PC的Windows 7 x64上都使用Mercurial-2.1.2-x64.
I'm using Mercurial-2.1.2-x64 on windows 7 x64 for both pcs.
推荐答案
所以我找到了错误的根源,我最初安装了tortoise hg,它在我的用户目录中创建了以下mercurial.ini文件,一旦删除此文件,文件,它解决了这个问题.我想问题是我指定了存储库url而不是实际的http代理...
So I found the source of the error, I had initially installed tortoise hg which had created the following mercurial.ini file in my user directory, once I deleted this file, it resolved the issue. I suppose the problem was that I had specified the repository url instead of an actual http proxy...
# Generated by TortoiseHg settings dialog
[tortoisehg]
cipushafter =
[http_proxy]
host = https://****@bitbucket.org/****/*** (my repository path)
这篇关于无法从Mercurial存储库中推送/拉取-中止:错误:远程主机强行关闭了现有连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!