mercurial - 无法从 mercurial 存储库中推/拉 - 中止 : error: An existing connection was forcibly closed by the remote host

标签 mercurial bitbucket

我计划在一个新项目中使用 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/

相关文章:

mercurial - 在 Mercurial 中央存储库中推送更改会更改所有者和组

authentication - 在 mercurial 的 allow_read、allow_push 等中使用组

svn - 如何从某些修订/推送中删除 Mercurial 存储库

git - 如何在 Bitbucket 上管理用户

java - Git 克隆失败

git - Bitbucket 事件图

Mercurial 和 NTFS 备用数据流

git - 无法解析主机 : bitbucket. 组织;节点名称或服务名称已提供,或未知

version-control - 选择 Mercurial 主机

mercurial - hg 为 subrepos 服务