本文翻译自:Git push results in “Authentication Failed”
I have been using Github for a little while and I have been fine with git add
, git commit
, and git push
so far with no problems. 我已经使用Github一段时间了,我一直很好用git add
, git commit
和git push
到目前为止没有任何问题。 Suddenly I am having an error that says: 我突然发现一个错误:
fatal: Authentication Failed 致命:身份验证失败
In the terminal I cloned a repository, worked on a file and then I used git add
to add the file to the commit log and when I did git commit
, it worked fine. 在终端我克隆了一个存储库,处理了一个文件,然后我使用git add
将文件git add
到提交日志中,当我执行git commit
,它运行正常。 Finally, git push
asks for username and password. 最后, git push
要求输入用户名和密码。 I put those in correctly and every time I do this, it says the same error. 我正确地把它们放进去,每次我这样做,它都说同样的错误。
Does anyone have any idea what the cause of this problem is and how I can fix it? 有谁知道这个问题的原因是什么以及我如何解决它?
The cont