简体   繁体   English

Eclipse,Git和Bitbucket - 无法推送 - 错误401未经授权

[英]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, select Collaboration > Eclipse EPP Marketplace Client and click Install . 单击“ 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.

相关问题 Git + Eclipse:401未经授权的错误 - Git + Eclipse: 401 Unauthorized Error 无法从Eclipse Neon推送到Bitbucket - Can't push to bitbucket from eclipse neon 从Apache Http Server上托管的git存储库中克隆时出现Eclipse造成的401未授权错误 - 401 Unauthorized error by eclipse while cloning from git repository hosted on Apache Http Server Eclipse Web Services测试客户端和异常:(401)未经授权的错误 - Eclipse Web Services Test Client and Exception: (401) Unauthorized error bitbucket git push不允许 - bitbucket git push not permitted 无法推动使用EGit和Bitbucket - Can't push using EGit and Bitbucket Maven Eclipse 中的 Bintray 分发未上传 jar 文件。 错误代码401(未授权)但只针对jar包装? - Maven Bintray distribution in Eclipse is not uploading jar files. Error code 401 (Unauthorized) but only for jar packaging? 使用Eclipse插件在AppEngine部署期间错误401未授权(无效的OAuth令牌) - Error 401 Unauthorized (Invalid OAuth Token) during AppEngine Deployment with Eclipse Plugin eclipse maven 部署战争到 nexus OSS 访问被拒绝 错误代码 401,未经授权 - eclipse maven deploy war to nexus OSS Access denied Error code 401, Unauthorized 无法从Eclipse推送到TFS Git存储库,但是命令行可以正常工作 - Can't push to TFS Git repository from Eclipse, but command line works fine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM