Eclipse 的 egit 插件 [英] egit plugin for Eclipse

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

问题描述

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

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

任何建议将不胜感激:)

谢谢!

解决方案

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

p>

请参阅 .

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

  • CVCS(集中式版本控制系统)如 SVN
  • DVCS:分布式版本控制系统.

请参阅向我出售分布式修订控制"和描述您使用版本控制(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:

  • CVCS (Centralized Version Control System) like SVN
  • DVCS: Distributed Version Control System.

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

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆