即使设置了SSH密钥,Git也要求输入用户名和密码

时间:2015-11-09 11:02:05

标签: git github

在我的Mac上,Git每次登录时都会询问我的用户名和密码,尽管我按照https://help.github.com/enterprise/2.3/user/articles/generating-ssh-keys/上的分步说明进行操作

1 个答案:

答案 0 :(得分:0)

我可以按照https://help.github.com/articles/caching-your-github-password-in-git/

中的步骤解决此问题

使用以下命令,因为我已安装它:

git config --global credential.helper osxkeychain

现在它不会要求登录凭据。