如何解决由于“用户名或密码无效”而无法推送到GitHub的问题?

3

我最近遇到了一个问题。基本上,我无法使用GitBash通过https从我的工作电脑推送到GitHub上的个人仓库。

以下是错误信息:

$ git push origin master
Username for 'https://github.com': 
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/georgeliu1998/mlnd.git/'

我查看了以下这些帖子,但它们似乎与我的情况不同。

1个回答

7

还有一个 https://developer.github.com/v3/auth/#working-with-two-factor-authentication,它说你可以使用 OTP,但建议使用令牌。 - Josh Lee

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接