美文网首页
git push总是报错 “(internetKeychainI

git push总是报错 “(internetKeychainI

作者: 木昜_J | 来源:发表于2018-03-16 09:51 被阅读0次

今天在GitHub上新建了一个项目,但是push代码的时候总是让我输入密码,反复4次以后就会反馈上传失败,报错:“(internetKeychainItemForServer:withUsername:path:port:protocol:) - The specified item could not be found in the keychain.”,将HTTPS提交改成SSL也没用,后来打开自己GitHub主页,项目账号下看到有个红色感叹号标识two-factor authentication,查了一下在GitHub上采取双因子身份认证后,在git push 的时候将会要求填写用户的用户名和密码,用户名就是用户在GitHub上申请的用户名,但是密码不是普通登录GitHub的密码,而是一个访问token。

按如下链接获取访问token后,push代码是填上token,代码成功上传。

链接:Creating a personal access token for the command line

相关文章

网友评论

      本文标题:git push总是报错 “(internetKeychainI

      本文链接:https://www.haomeiwen.com/subject/ahrlqftx.html