Muh*_*d K 9 git bitbucket git-tower
当我获取或拉入任何客户时,我一直面临问题。即“Tower”和Sourcetree。一切都很顺利,我刚刚将 macOS 更新到了 Mojave。
但我总是得到
错误详细信息:致命:“ https://username@bitbucket.org/sample/sample.git/ ”身份验证失败
frm*_*elz 11
同样的错误(Windows、Git Bash 命令行、bitbucket)。使用 https(不是 ssh)应该提示输入登录凭据,但会出现错误:
$ git pull origin master
fatal: Authentication failed for 'https://bitbucket.../my_git_project.git'
Run Code Online (Sandbox Code Playgroud)
$ git config -l
...
credential.helper=manager
...
$ git config --global --unset credential.helper
$ git config --system --unset credential.helper
Run Code Online (Sandbox Code Playgroud)
git pull现在提示输入用户名/密码。
您可以尝试这个解决方案:
git remote add origin https://{username}:{password}@github.com/{username}/project.git
Run Code Online (Sandbox Code Playgroud)