git 无法登录到 SourceTree
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/35436994/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Cannot login to SourceTree
提问by garryp
My company has a Bitbucket account with Atlassian. I've downloaded the latest update to Sourcetree; when I try and login my credentials are not accepted.
我的公司在 Atlassian 上有一个 Bitbucket 帐户。我已经下载了 Sourcetree 的最新更新;当我尝试登录时,我的凭据不被接受。
The same happens if I access this page through my web browser here: https://id.atlassian.com/login?application=mac&continue=https://my.atlassian.com
如果我通过我的网络浏览器访问此页面,也会发生同样的情况:https: //id.atlassian.com/login?application=mac&continue=https: //my.atlassian.com
However if I try to login to https://company.atlassian.net/login? it works fine.
但是,如果我尝试登录https://company.atlassian.net/login?它工作正常。
Is there some convention I have to use to tell Atlassian my company name as part of my login user ID (ie username@company)?
我是否必须使用某种约定将我的公司名称作为我的登录用户 ID(即 username@company)的一部分告诉 Atlassian?
Sourcetree won't let me do anything without getting past this screen.
Sourcetree 不会让我做任何事情而不通过这个屏幕。
采纳答案by Anson
Try quitting the SourceTree app and re-launching.
尝试退出 SourceTree 应用程序并重新启动。
I had a similar problem. My id.atlassian.com
credentials worked online but repeatedly failed in SourceTree. It worked for me after a relaunch.
我有一个类似的问题。我的id.atlassian.com
凭据在线工作,但在 SourceTree 中反复失败。重新启动后它对我有用。
Atlassian recommends sticking with the older version at the moment: https://twitter.com/sourcetree/status/699624992003244033
Atlassian 建议目前坚持使用旧版本:https: //twitter.com/sourcetree/status/699624992003244033
UpdateOn Feb 22, Atlassian apologizedand released SourceTree 2.2.2. However, some folks are still tweeting issues with the initial login on the release announcement.
更新2 月 22 日,Atlassian道歉并发布了 SourceTree 2.2.2。但是,有些人仍然在发布公告上发布有关初始登录的推文问题。
回答by Pavan Tolety
Remove all other authentications ids in Authentication section in sourcetree other than git hub.
删除除 git hub 之外的 sourcetree 中 Authentication 部分中的所有其他身份验证 ID。
Then click Add or either go to Hosted repositories(to quickly check if it was successful) and click on edit accounts.
然后单击添加或转到托管存储库(以快速检查它是否成功)并单击编辑帐户。
In credentials select OAuth and select refresh token. You will be redirected to your logged in bitbucket website and there click on Grant access.
在凭据中选择 OAuth 并选择刷新令牌。您将被重定向到您登录的 bitbucket 网站,然后单击授予访问权限。
Now goto your fresh account in Authentication section in sourcetree and select Set as Default.
现在转到源树中身份验证部分的新帐户,然后选择设置为默认值。
Done. Now you should see all your repositories in hosted repositories. It shows login error if it is not successful
完毕。现在您应该在托管存储库中看到所有存储库。不成功则显示登录错误
回答by AamirR
I ran the app from Downloads folder and had this issue. moving to Applications folder fixed it in my case.
我从下载文件夹运行应用程序并遇到了这个问题。 在我的情况下,移动到 Applications 文件夹修复了它。
回答by gyosifov
Check to see if your git is up to date.
检查您的 git 是否是最新的。
If updating git doesn't do the trick and if you are using Windows you can install/update https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases
如果更新 git 不起作用,并且您使用的是 Windows,则可以安装/更新 https://github.com/Microsoft/Git-Credential-Manager-for-Windows/releases
From the project's homepage at github:
从 github 上的项目主页:
As of 22 Feb 2018, GitHub has disabled support for weak encryption which means many users will suddenly find themselves unable to authenticate using a Git for Windows which (impacts versions older than v2.16.0). DO NOT PANIC, there's a fix. Update Git for Windows to the latest (or at least v2.16.0).
截至 2018 年 2 月 22 日,GitHub 已禁用对弱加密的支持,这意味着许多用户会突然发现自己无法使用适用于 Windows 的 Git(影响早于 v2.16.0 的版本)进行身份验证。不要恐慌,有一个解决办法。将适用于 Windows 的 Git 更新到最新版本(或至少 v2.16.0)。