Eclipse 的 egit 插件

2023-01-15Java开发问题
1

本文介绍了Eclipse 的 egit 插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我已经创建了一个 gitlab 存储库并按照字母的安装说明进行操作,并且成功(我认为...我可以在线浏览存储库),现在我想将 egit 插件从 eclipse 连接到这个远程存储库.

我使用 SVN 已经有一段时间了,现在我们需要切换到 git,我很困惑.egit 只为我提供了创建本地存储库的选项,但我对如何将代码推送/获取到我的在线存储库有点迷茫.

任何建议将不胜感激:)

谢谢!

解决方案

使用 Gitlab(使用 ssh url),这意味着你必须先在 Egit 中注册你的公钥和私钥,然后才能克隆它.

p>

请参阅 .

是的,你需要在本地克隆完整的 repo 来处理它,这就是 a:

请参阅向我出售分布式修订控制"和描述您使用版本控制(VCS或 DVCS)" 了解更多信息.

I have created a gitlab repository and followed the installation instruction by the letter and it was successful (i think... i can browse the repository online) and now I want to connect the egit plugin from eclipse to this remote repository.

I was using SVN for quite some time and now we need to switch to git and I am confused. egit only gives me the option to create a local repository but I'm a bit lost on how to push/fetch code to my online repository.

Any advice will be greatly appreciated :)

Thanks!

解决方案

With Gitlab (working with ssh urls), that means you have to register your public and private ssh key in Egit first before being able to clone it.

See EGit ssh configuration

Then you can clone it.

And yes, you need to clone the full repo locally to work on it, that is the difference between a:

See "Sell me Distributed revision control" and "Describe your workflow of using version control (VCS or DVCS)" for more.

这篇关于Eclipse 的 egit 插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

如何使用 JAVA 向 COM PORT 发送数据?

如何使用 JAVA 向 COM PORT 发送数据?

How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)...
2024-08-25 Java开发问题
21

在 Eclipse 项目中使用西里尔文 .properties 文件

在 Eclipse 项目中使用西里尔文 .properties 文件

Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)...
2024-08-25 Java开发问题
18

Eclipse 在尝试启动 Android 应用程序时卡住了

Eclipse 在尝试启动 Android 应用程序时卡住了

Eclipse gets stuck when trying to launch Android app(Eclipse 在尝试启动 Android 应用程序时卡住了)...
2024-08-25 Java开发问题
14

Java 代表?

Java 代表?

Java Delegates?(Java 代表?)...
2024-08-25 Java开发问题
15

Eclipse:无法初始化监视器线程:无法建立环回连接

Eclipse:无法初始化监视器线程:无法建立环回连接

Eclipse: Failed to initialize Monitor Thread: Unable to establish loopback connection(Eclipse:无法初始化监视器线程:无法建立环回连接)...
2024-08-25 Java开发问题
4

Eclipse-找不到JDK

Eclipse-找不到JDK

Eclipse- JDK not found(Eclipse-找不到JDK)...
2024-08-25 Java开发问题
6

热门文章

1如何解决不必要的存根异常 2此处检测到错位的参数匹配器.您不能在 Mockito 中的验证或存根之外使用参数匹配器 3Android 致命信号 7 (SIGBUS) 4无法使用 SMTP 发送电子邮件(获取 javax.mail.MessagingException:无法将套接字转换为 5javax.mail.AuthenticationFailedException:连接失败,没有指定密码? 6使用 bouncycastle 签名和验证签名的正确方法 7使用 Mockito 从模拟中抛出已检查的异常 8即使在添加 @PrepareForTest 之后,Mockito 也会要求为该类添加 @PrepareForTest

热门精品源码

最新VIP资源

1多功能实用站长工具箱html功能模板 2多风格简历在线生成程序网页模板 3论文相似度查询系统源码 4响应式旅游景点宣传推广页面模板 5在线起名宣传推广网站源码 6酷黑微信小程序网站开发宣传页模板 7房产销售交易中介网站模板 8小学作业自动生成程序