Eclipse,Git和Bitbucket

编程入门 行业动态 更新时间:2024-10-27 09:48:04
本文介绍了Eclipse,Git和Bitbucket - 无法推送 - 错误401未经授权的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我有一个Bitbucket和EGit的问题。我在BitBucket上创建了一个新的存储库,也是Eclipse中的一个新项目。当我尝试推送提交时,我收到以下错误消息:

无法连接到任何存储库:https:/ /bitbucket/MyName/MyProject.git (bitbucket/MyName/MyProject.git:401未经授权)

我也尝试过 https://MyName@bitbucket/MyName/MyProject.git 但我收到相同的错误。在创建提交之后,我使用 git push 命令行,并且它没有问题工作。之后,我尝试用Eclipse和EGit推送,但是我再次收到相同的错误。我多次检查了我的帐户名和密码。

我需要以某种方式配置EGit,以便可以从Eclipse推送到BitBucket?一个月前,我一直推送到与EGit不同的主机上的存储库,没有问题。

解决方案

这取决于你Eclipse和Egit版本。 使用最新的Neon,有一个线程报告相同的问题,并打开一张票:错误501000 。

正在进行修复:更改82187:EGit身份验证器阻止登录对话框。 它已经是合并到主(也可以在GitHub镜像上:提交39b391c 和提交10c65c7 。 更改82539 也只是在 3天前合并。

所以Marketplace Client Project项目库1.5.2应该包括修复。 实际上,它被称为 1.5.1a ,但您可以使用 http ://download.eclipse/mpc/releases/1.5.2 。作为一个URL。

如果您使用的是Eclipse Neon,您还可以从Neon存储库安装EPP Marketplace Client。点击帮助>安装新软件,键入 neon ,选择氖存储库URL,选择协作> Eclipse EPP Marketplace客户端,然后点击安装。

EGit本身还有一个修复过程:更改82295 。

I have a problem with Bitbucket and EGit. I created a new repository on BitBucket and also a new project in Eclipse. When I try to push a commit, I get the following error message:

Can't connect to any repository: bitbucket/MyName/MyProject.git (bitbucket/MyName/MyProject.git: 401 Unauthorized)

I also tried MyName@bitbucket/MyName/MyProject.git but I got the same error. After creating the commit, I pushed by using the command line with git push and it worked without a problem. After that I tried pushing with Eclipse and EGit but I got the same error again. 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? A month ago I always pushed to a repository on a different host from Eclipse with EGit without a problem.

解决方案

It depends on your version of Eclipse and Egit. With the very latest Neon, there is a thread reporting the same issue, and a ticket opened: bug 501000.

There is a fix in progress: Change 82187: "EGit Authenticator prevents login dialog". It is already merged into master (also on the GitHub mirror:commit 39b391c and commit 10c65c7. Change 82539 also just got merged 3 days ago.

So Marketplace Client Project project repository 1.5.2 should include the fix. Actually, it is called 1.5.1a, but you can use download.eclipse/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. Click Help > Install New Software, type "neon", select the Neon repository URL, select Collaboration > Eclipse EPP Marketplace Client and click Install.

There is also a fix in progress for EGit itself: change 82295.

更多推荐

Eclipse,Git和Bitbucket

本文发布于:2023-11-09 22:40:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1573627.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Eclipse   Git   Bitbucket

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!