Git 凭据帮助程序不起作用



我正在尝试保存我的git密码以避免每次都打字。

我在 Windows 10 上使用 git bash。

每次我点击遥控器时,git 都会继续要求输入密码。

(git bash 为什么它不起作用吗?

我试过:

git config --global credential.helper 'cache --timeout 28800'

和:

git config --global credential.helper store

和:

git config --global credential.helper wincred

我已经在 git bash 和 cmd 中尝试过它,所以我想这不是 git bash 导致问题的原因。

首先,对于 Windows,要使用的凭据帮助程序manager

git config --global credential.helper manager

其次,这仅适用于HTTPS URL,而不适用于SSHURL(user@server.com(

对于SSH,它是:

  • 请求密码,因为您的私有 SSH 密钥受密码保护。
    如果是这种情况,请检查 ssh 代理:请参阅"将 SSH 密钥添加到 ssh 代理">
  • 询问 Matt 的密码,因为它在远程服务器艺术~matt/.ssh/authorized_keys上找不到您的公钥。

最新更新