【问题标题】:git pull causes OpenSSH promptgit pull 导致 OpenSSH 提示
【发布时间】:2018-09-30 06:36:14
【问题描述】:

我没有更改我的 Windows AD 密码,但在执行git 命令时突然收到提示,例如git pull

我尝试了各种方法,比如将我的 .gitconfig 更改为使用 HTTPS 而不是 SSH (git)。我还更新了我的 Windows 凭据管理器,以确保它使用了正确的 AD 密码。

有人建议我放弃 SSH 并改用 HTTPS。我正在努力弄清楚如何做到这一点。无论我做什么,我都会不断收到 OpenSSH 对话框。如何更改为 HTTPS,或阻止该对话框出现每个 git 命令?

如果有帮助,这是我的 .gitconfig(删除了 diff 和 merge 选项):

[user]
    name = myuser
    email = myuser@xxx.com
[push]
    default = simple
[credential]
    helper = wincred

来源:https://community.atlassian.com/t5/Sourcetree-questions/Git-Credential-Manager-for-Windows-Popups/qaq-p/579905

【问题讨论】:

  • 您在创建 ssh 密钥时是否添加了密码?
  • 我真的不记得了。

标签: git https openssh


【解决方案1】:

看起来这个命令对我有用:

git config --global credential.useHttpPath true

这导致这里的最后一行出现在 .gitconfig 文件中:

[credential]
    helper = wincred
    useHttpPath = true

我第一次做git pull,又得到了提示。但在那之后我不再得到登录对话框。

【讨论】:

    【解决方案2】:

    【讨论】:

      猜你喜欢
      • 2023-03-08
      • 1970-01-01
      • 1970-01-01
      • 2015-04-14
      • 2012-06-17
      • 1970-01-01
      • 1970-01-01
      • 2011-09-09
      • 2020-03-25
      相关资源
      最近更新 更多