简体   繁体   English

Eclipse Neon和Git克隆不起作用

[英]Eclipse Neon and Git clone does not work

We are using Github Enterprise, and each user created its own personal access token, which is used in git clone. 我们正在使用Github Enterprise,每个用户都创建了自己的个人访问令牌,该令牌在git clone中使用。

However in Eclipse Neon (macOS) I tried to add manually cloned repository, and it not adds into Eclipse Git perspective. 但是,在Eclipse Neon(macOS)中,我尝试添加手动克隆的存储库,但未将其添加到Eclipse Git透视图中。

So I tried to clone repo again using Eclipse Neon & its EGit, when i'm cloning git manually i use this: 因此,当我手动克隆git时,我尝试使用Eclipse Neon及其EGit再次克隆repo。

https://<USERNAME>:<TOKEN>@github.ibm.com/<ORGANIZATION>/<REPOSITORY>

When I use same URL in eclipse clone Git wizard: 当我在eclipse clone Git向导中使用相同的URL时: 在此处输入图片说明 , in after next button clicked i have this error: ,在点击了下一个按钮后,我出现此错误: 在此处输入图片说明

Any ideas what could be wrong ? 任何想法可能有什么问题吗?

UPDATE: 更新:

I also tried access using SSH keys, which also work fine in console, but Eclipse has still issue after in enter URL: 我还尝试了使用SSH密钥进行访问,这在控制台中也可以正常工作,但是在输入URL之后,Eclipse仍然存在问题: 在此处输入图片说明

Same window as picture 2) 与图2相同的窗口

Try removing the token from the URI field in Eclipse Git. 尝试从Eclipse Git中的URI字段中删除令牌。 You are passing in authentication parameters so you shouldn't need to also pass the token in the URI. 您正在传递身份验证参数,因此您也不需要在URI中传递令牌。 Should look something like this: 应该看起来像这样:

https://github.com/username/repo.git

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM