[英]How to resolve fatal: Authentication failed for git [bitbucket]
当我获取或拉入任何客户端时,我一直面临问题。 即“塔”和Sourcetree。 一切都很顺利,我只是将 macos 更新到 Mojave。
但我总是得到
错误详细信息:致命:“ https://username@bitbucket.org/sample/sample.git/ ”的身份验证失败
你可以试试这个解决方案:
git remote add origin https://{username}:{password}@github.com/{username}/project.git
最好的方法是使用 Git Credentials Manager ( https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.18.1 ) 或适合您操作系统的凭证管理器。 不要将您的用户名/密码放在纯文本配置文件中(除非它是双空白..)
相同的错误(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
现在提示输入用户名/密码提示。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.