优塞米特的Git不断询问远程用户名和密码 [英] Git on Yosemite keeps asking for remote username and password

查看:106
本文介绍了优塞米特的Git不断询问远程用户名和密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已更新到OS X优胜美地。当运行任何与远程回购(pull,fetch等)有关的git命令时,终端会一直询问我的github用户名和密码(远程在github上)。如果我从github客户端为mac执行这些操作,它不会要求提供凭据。



我的git配置文件没问题。我的SSH密钥也很好。我尝试从Github应用程序重新安装git命令行工具,但没有成功。



有什么建议?

解决方案

在命令行上运行以下命令:
$ b git config --global credential.helper osxkeychain



然后运行你的git命令。这是帮助我弄清楚的链接。
https://help.github.com/articles/caching-your -github-password-in-git /


I've updated to OS X Yosemite. When running any git command that has to do with the remote repo (pull, fetch, etc) the terminal keeps asking for my github username and password (the remote is on github). If I perform these actions from the github client for mac, it doesn't ask for credentials.

My git config file is fine. My SSH key is fine too. I tried to reinstall the git command line tools from the Github app with no success.

Any suggestions?

解决方案

Run following on command line.

git config --global credential.helper osxkeychain

Then run your git command. Here is the link that helped me figure out. https://help.github.com/articles/caching-your-github-password-in-git/

这篇关于优塞米特的Git不断询问远程用户名和密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆