git 推送成功但 returns 错误信息

git push success but returns error message

那里, 当我使用 git 将我的代码推送到 gitlab 时,它实际上成功了,我可以从 [=29= 看到我更新的代码]lab 网络界面。

但是它一直返回一条错误消息:“不支持身份验证 方法可用(服务器 sent:publickey,键盘交互)。 我不明白这个。

我还有另一个由 gitlab 主持的项目。我对推送代码没有任何问题 从这个项目。我想知道第一个项目会发生什么。

请把我从这个烂摊子中解救出来。

此致, 亚历克斯

您似乎使用 git URL 作为 pushing/pulling。

为了使这项工作正常进行,您需要将 PuTTY 密钥加载到 PuTTY 代理中(选美;如果您为远程配置了 PuTTY 密钥,TortoiseGit 通常会自动执行此操作)。

另一种方法是配置PuTTY会话(或修改默认会话),参见。 https://tortoisegit.org/docs/tortoisegit/tgit-ssh-faq.html#tgit-ssh-faq-defaultkey and https://tortoisegit.org/docs/tortoisegit/tgit-ssh-howto.html.

第三种方法是切换到 https URL 进行远程操作。