Knowledge Seeking

Cloning a Repository Using The EGit Eclipse Plugin With GitHub (on WINDOWS) September 9, 2010

Filed under: Git — nicozan @ 6:13 pm

In this post we`ll be learning, in 6 steps, how to clone an External Repository and have our Local one.

Basic Steps
1-Install and Configure msysGit. (See steps in this LINK msysGit)
2-Remember you have to create your SSH Key. (See steps in this LINK Create Shh Key)
3-Install the Egit Plugin using, EGit

Cloning Steps
After you have installed the Plugin, lets Clone an External Repository:

a) You will probably have this 2 folders, “C:\Users\{user}\.shh” and “C:\Users\{user}\shh”. The .shh folder has the files with your Shh Key, so you should copy the files from this folder to the shh folder because EGit tries to get your Public Key from C:\Users\{user}\shh.
b) Now on the Package Explorer do: Right Click -> Import…
c) Select Git -> Projects from Git.
d) This Window should appear:

Select the clone button.
e) In this new Window, you have to pay attention to these Fields: URI and protocol

f) Please follow the next sequence to complete these field, to avoid problems. First, put in the URI field{yourRepository}/{yourProject}.git . Second, select the protocol git+ssh and Finish.

That would be all…

PS: Remember that the new Local Project should have the same name as the one in the Public Repository ;).


One Response to “Cloning a Repository Using The EGit Eclipse Plugin With GitHub (on WINDOWS)”

  1. First of all, thanks for sharing this info..

    Now my issue, when i try to clone, firstly i am not getting the option of ‘git+ssh’ in protocol.. so i am chosing ‘git’ only.. now it is not accepting my passphrase.. i am sure i have the correct passphrase as it is working via command line.. but dunno why it is not working in eclipse…
    i have the ssh folder too..

    any help would be greatly appreciated..

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s