我计划在一个新项目中使用 mercurial,但我在访问 bitbucket 存储库时遇到了一些问题。我是 mercurial 的新手,但我以前使用过 git。
在执行 hg 克隆或推送时出现以下错误:
中止:错误:现有连接被远程主机强行关闭
我只在使用我的工作电脑时遇到这个问题,当从我的家用电脑访问存储库时,我可以克隆和推送就好了,任何想法,是否需要配置一些防火墙设置?
我在两台电脑上都在 Windows 7 x64 上使用 Mercurial-2.1.2-x64。
最佳答案
所以我找到了错误的根源,我最初安装了 tortoise hg,它在我的用户目录中创建了以下 mercurial.ini 文件,一旦我删除了这个文件,它就解决了这个问题。我想问题是我指定了存储库 url 而不是实际的 http 代理...
# Generated by TortoiseHg settings dialog
[tortoisehg]
cipushafter =
[http_proxy]
host = https://****@bitbucket.org/****/*** (my repository path)
关于mercurial - 无法从 mercurial 存储库中推/拉 - 中止 : error: An existing connection was forcibly closed by the remote host,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10086576/