egit plugin for Eclipse

2019-03-31 12:23发布

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!

2条回答
家丑人穷心不美
2楼-- · 2019-03-31 12:35

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

查看更多
Root(大扎)
3楼-- · 2019-03-31 12:50

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

EGit ssh config

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.

查看更多
登录 后发表回答