[英]Eclipse, Git and Bitbucket - Can't push - Error 401 Unauthorized
I have a problem with Bitbucket and EGit. 我有Bitbucket和EGit的问题。 I created a new repository on BitBucket and also a new project in Eclipse.
我在BitBucket上创建了一个新的存储库,并在Eclipse中创建了一个新项目。 When I try to push a commit, I get the following error message:
当我尝试推送提交时,我收到以下错误消息:
Can't connect to any repository: https://bitbucket.org/MyName/MyProject.git
(https://bitbucket.org/MyName/MyProject.git: 401 Unauthorized)
I also tried https://MyName@bitbucket.org/MyName/MyProject.git
but I got the same error. 我也尝试过
https://MyName@bitbucket.org/MyName/MyProject.git
但我也遇到了同样的错误。 After creating the commit, I pushed by using the command line with git push
and it worked without a problem . 创建提交后,我通过
git push
使用命令行进行git push
,它没有问题 。 After that I tried pushing with Eclipse and EGit but I got the same error again. 之后我尝试用Eclipse和EGit推送,但我又遇到了同样的错误。 I checked my account name and password multiple times.
我多次检查了我的帐户名和密码。
Do I need to configure EGit in some way to make it possible to push from Eclipse to BitBucket? 我是否需要以某种方式配置EGit才能从Eclipse推送到BitBucket? A month ago I always pushed to a repository on a different host from Eclipse with EGit without a problem.
一个月前,我总是在没有问题的情况下将Eclipse推送到与Eclipse不同的主机上的存储库。
It depends on your version of Eclipse and Egit. 这取决于您的Eclipse和Egit的版本。
With the very latest Neon, there is a thread reporting the same issue , and a ticket opened: bug 501000 . 使用最新的Neon,有一个线程报告相同的问题 ,并打开了一张票: 错误501000 。
There is a fix in progress: Change 82187: "EGit Authenticator prevents login dialog" . 正在进行修复: 更改82187:“EGit Authenticator阻止登录对话框” 。
It is already merged into master (also on the GitHub mirror: commit 39b391c and commit 10c65c7 . 它已经合并到master中 (也在GitHub镜像上: commit 39b391c并提交10c65c7 。
Change 82539 also just got merged 3 days ago . 变更82539也刚刚在3天前合并 。
So Marketplace Client Project project repository 1.5.2 should include the fix. 所以Marketplace Client Project项目存储库1.5.2应该包含修复。
Actually, it is called 1.5.1a , but you can use http://download.eclipse.org/mpc/releases/1.5.2 . 实际上,它被称为1.5.1a ,但您可以使用http://download.eclipse.org/mpc/releases/1.5.2 。 as an url.
作为网址。
If you are using Eclipse Neon you may also install EPP Marketplace Client from the Neon repository.
如果您正在使用Eclipse Neon,您还可以从Neon存储库安装EPP Marketplace Client。 Click
Help > Install New Software
, type "neon
", select the Neon repository URL, selectCollaboration > Eclipse EPP Marketplace Client
and clickInstall
.单击“
Help > Install New Software
,键入“neon
”,选择“Neon”存储库URL,选择“Collaboration > Eclipse EPP Marketplace Client
,然后单击“Install
。
There is also a fix in progress for EGit itself: change 82295 . EGit本身也有进展: 更改82295 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.