git - hg-git push 提示公钥

标签 git mercurial

我一直在用 hg-git到目前为止很好,使用 mercurial 从我的 git 仓库中推 pull 。今天突然出现以下错误:

❯ hg push
pushing to git+ssh://git@github.com/User/myrepo.git
Permission denied (publickey).
abort: git remote error: The remote server unexpectedly closed the connection.

在此之后,我再次检查了我的公钥是否仍然存在并与我的 git 帐户相关联。除了重新启动计算机之外,自上次推送以来没有任何变化。任何人都知道可能是什么问题?错误消息并不是最有帮助的。

我的 .hgrc 只是普通的:
[ui]
username = My Name <myname@domain.com>

[extensions]
hgext.convert=
hgext.bookmarks =
hggit =

最佳答案

您必须提供您的 公钥到 GitHub(SSH 代理或 PageAnt 取决于操作系统)

关于git - hg-git push 提示公钥,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31216785/

相关文章:

git - TeamCity:来自 git 的代理端 checkout 失败

git push origin develop 什么都不做

mercurial - 我应该为 IntelliJ 使用哪个 Mercurial 插件

mercurial - 使用 Mercurial 插入多个头

mercurial - 如何列出 Mercurial 中两个更改集之间的所有(新)添加文件?

git - 查找特定于分支的第一个提交

git - 知道谁将项目克隆到他们在 Gitlab 中的本地系统

Mercurial 删除历史记录

mercurial - 如何配置 mercurial 以仅部署网站文件夹

git - 为什么我无法放弃由 `git clean` 过滤器引起的本地更改?