git凭据帮助程序不工作

git凭据帮助程序不工作,git,credentials,git-bash,Git,Credentials,Git Bash,我正试图保存我的git密码,以避免每次键入 我在Windows10上使用GitBash 每次我点击遥控器,git都会要求输入密码 (git bash为什么不工作?) 我试过: git config --global credential.helper 'cache --timeout 28800' 以及: 以及: 我在git bash和cmd中都试过,所以我想这不是git bash造成的问题。首先,对于Windows,要使用的凭据帮助程序是管理器: git config --global cr

我正试图保存我的git密码,以避免每次键入

我在Windows10上使用GitBash

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

(git bash为什么不工作?)

我试过:

git config --global credential.helper 'cache --timeout 28800'
以及:

以及:


我在git bash和cmd中都试过,所以我想这不是git bash造成的问题。

首先,对于Windows,要使用的凭据帮助程序是
管理器

git config --global credential.helper manager
其次,这只适用于HTTPS URL,而不适用于SSH URL(
user@server.com

对于SSHs,它是:

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

git的哪个版本?您对远程设备使用ssh URL还是http URL?@phd
git版本2.16.2.windows.1
并且此repo是用.git扩展名克隆的。。。这就是ssh?好吧,如果你不知道你的远程URL,让我们看看:
git-remote-v
@phd,它看起来是这样的:
originmatt@foo.bar:/home/matt/baz.git(fetch)
user@host
是ssh(准确地说,类似于scp)URL,它们的凭据不是由
credential.helper管理的。非常好,谢谢。这就是我从@phd上面的评论中学到的。既然我已经生成了公钥,我怎么才能获得它呢?在~/.ssh/id_rsa.pub中
git config --global credential.helper wincred
git config --global credential.helper manager