Wilo Maldonado
Wilo Maldonado

Reputation: 551

egit plugin for Eclipse

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!

Upvotes: 3

Views: 3195

Answers (2)

VonC
VonC

Reputation: 1328312

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.

Upvotes: 2

Arun P Johny
Arun P Johny

Reputation: 388416

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

Upvotes: 0

Related Questions