Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't clone remote git repository with EGit

Tags:

git

eclipse

egit

I am trying to clone remote git repository with Egit, via https protocol. I followed this online tutorial.

When I insert URI: https://username@host:port/repositorypath, password and click NEXT, I am getting this error message:

Cannot list the available branches. Reason: Exception caught during execution of ls-remote command. 

How can I clone this repo?

like image 272
a_mark Avatar asked Feb 28 '12 12:02

a_mark


People also ask

How do I clone a Git repository EGit?

Cloning Repositories In order to checkout a remote project, you will have to clone its repository first. Open the Eclipse Import wizard (e.g. File => Import), select Git => Projects from Git and click Next. Select “URI” and click next. Now you will have to enter the repository's location and connection data.


2 Answers

It sounds like Egit is looking for an ssl certificate and refusing to function without it. A good fix to make the problem go away and stay away: Window→Preferences→Team→Git→Configuration→New Entry→http.sslverify=false.

That should take care of it.

like image 121
Daniel Lee Avatar answered Sep 20 '22 11:09

Daniel Lee


Adding .git to the repository url worked for me.

like image 21
Memet Olsen Avatar answered Sep 19 '22 11:09

Memet Olsen