获取或拉入任何客户端时,我一直面临问题。即“塔”和Sourcetree。一切进展顺利,我确实将macOS更新到了Mojave。
但是我总是得到
错误详细信息:致命:身份验证失败 'https://username@bitbucket.org/sample/sample.git/'
答案 0 :(得分:0)
您可以尝试以下解决方案:
git remote add origin https://{username}:{password}@github.com/{username}/project.git
答案 1 :(得分:0)
最好的方法是使用Git凭据管理器(https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.18.1)或适用于您的OS的凭据管理器。不要将您的用户名/密码放在纯文本配置文件中(除非它是双空白。)
答案 2 :(得分:0)
同样的错误(Windows、Git Bash 命令行、bitbucket)。使用 https(不是 ssh),它应该提示输入登录凭据,而是错误:
$ git pull origin master
fatal: Authentication failed for 'https://bitbucket.../my_git_project.git'
$ git config -l
...
credential.helper=manager
...
$ git config --global --unset credential.helper
$ git config --system --unset credential.helper
git pull
现在提示输入用户名/密码提示。