最近我在使用" Tower "和"Sourcetree"等客户端时,遇到了一些问题。之前一切顺利,但是我把macOS更新成Mojave后,出现了以下错误:
请帮我查看并解决这个问题,谢谢!错误详情: fatal: Authentication failed for 'https://username@bitbucket.org/sample/sample.git/'
最近我在使用" Tower "和"Sourcetree"等客户端时,遇到了一些问题。之前一切顺利,但是我把macOS更新成Mojave后,出现了以下错误:
请帮我查看并解决这个问题,谢谢!错误详情: fatal: Authentication failed for 'https://username@bitbucket.org/sample/sample.git/'
$ 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
现在需要输入用户名和密码。
git remote add origin https://{username}:{password}@github.com/{username}/project.git
最佳方法是使用Git凭据管理器(https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases/tag/v1.18.1),或适用于您的操作系统的适当凭据管理器。不要将您的用户名/密码放在明文配置文件中(除非它是双重空白..)
git remote show origin
的结果(您可以编辑您的问题!) - Christoph