问题描述
我正在尝试使用Sourcetree在Bitbucket上通过https协议推送我的项目.
但是我无法使用我的登录名和密码(可在网站上使用)连接到bitbucket,但出现致命错误:身份验证失败".
I'm trying to push my project via the https protocol on bitbucket using sourcetree.
But I can't connect to bitbucket with my login and password (which work on the website), I have a fatal error : "Authentication failed".
我阅读了其他文章,我可以使用ssh协议而不是https协议来解决此问题,因此我按照.但是现在我不知道要推送代码时如何更改为ssh协议.有人知道我该怎么做吗?谢谢.
I read on other posts I can work around the problem using the ssh protocol instead of the https one, so I set up a ssh key following instructions on the source tree faq.But now I don't know how I can change to the ssh protocol when I want to push my code.Someone know how I can do this ?Thank you.
推荐答案
如果GIT控制台出现身份验证问题,您可以通过以下方式尝试进行身份验证:
If you got authentication issues with the GIT console you can try your auth this way :
https://<username>:<password>@bitbucket.org/<username>/<repo>.git
这篇关于身份验证无法进行位桶化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!