egit plugin for Eclipse

左心房为你撑大大i 提交于 2019-12-05 06:04:42

问题


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!


回答1:


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.




回答2:


First you need to clone the remote repository using git clone <repository>, then you can import it to eclipse using egit

Or

You can use the clone functionality provided by EGit to clone the remote repo to local system



来源:https://stackoverflow.com/questions/15128294/egit-plugin-for-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!