【发布时间】:2017-04-18 20:24:06
【问题描述】:
我刚刚开始使用 Git/Github,但我完全陷入了困境。我在 Mac/OSX El Capitan 上使用终端,当它要求输入密码时,它告诉我密码无效,但我输入的密码与我为我的 GitHub 帐户创建的密码相同,所以这肯定可以吗?我做错了什么?
Last login: Sun Dec 4 10:46:35 on ttys000
Seans-MBP:~ mrseanbaines$ git push -u origin master
Username for 'https://github.com': mrseanbaines
Password for 'https://mrseanbaines@github.com':
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/mrseanbaines/cartwheeling-kitten.git/'
Seans-MBP:~ mrseanbaines$
【问题讨论】:
-
你的遥控器是什么样的(
git remote -v的输出)?您是否使用两因素身份验证? -
@yBot 最后登录时间:12 月 4 日星期日 11:51:27 on ttys000 Seans-MBP:~ mrseanbaines$ git remote -v origin github.com/mrseanbaines/cartwheeling-kitten.git (fetch) origin github.com/mrseanbaines/cartwheeling-kitten.git (push) Seans- MBP:~ mrseanbaines$ 如何检查我是否启用了两因素身份验证?
-
你试过用这些用户名/密码登录github吗?
-
@pedrorijo91 是的,它工作正常
-
你还在纠结吗?