Difference between revisions of "Orion/How Tos/Cloning repository from github"

From Eclipsepedia

< Orion‎ | How Tos
Jump to: navigation, search
(Cloning a Git repository hosted on GitHub)
(Cloning a Git repository hosted on GitHub)
Line 10: Line 10:
 
#Choose '''Clone''' button and copy the your Git repository URI into the Repository URL input<br>[[Image:Clone git repository dialog.png]]<br><br>  
 
#Choose '''Clone''' button and copy the your Git repository URI into the Repository URL input<br>[[Image:Clone git repository dialog.png]]<br><br>  
 
# You will be prompted for credentials.<br>[[Image:orion_credentials.png]]<br>
 
# You will be prompted for credentials.<br>[[Image:orion_credentials.png]]<br>
##If you added the public key to github, then you need to copy the contents of your private key file (typically in your '''.ssh''' directory underneath your home directory.  If your key defined a passphrase, supply it also.
+
##If you added the public key to github, then you need to copy the contents of your private key file (typically in your '''.ssh''' directory underneath your home directory) into the '''Private key:''' field.  If your key defined a passphrase, supply it also.
 
##If you are using ssh login, input your credentials<br>'''Ssh username''' - username <br>'''Ssh password''' - password <br>
 
##If you are using ssh login, input your credentials<br>'''Ssh username''' - username <br>'''Ssh password''' - password <br>
 
#Confirm credentials and wait until your repository is cloned
 
#Confirm credentials and wait until your repository is cloned
  
 
For more information about using Git with Orion, see the [[Orion/Documentation/User_Guide|Orion User Guide]].
 
For more information about using Git with Orion, see the [[Orion/Documentation/User_Guide|Orion User Guide]].

Revision as of 15:28, 12 October 2011

Say you have an account on GitHub, and want use Orion to contribute to work on code in that GitHub repository. Read on for details on how to configure Orion to work with your GitHub repository.

Cloning a Git repository hosted on GitHub

  1. Obtain a repository URI. Go to GitHub repository home page and copy the repository URI, typically SSH and HTTP give read and write access and Git protocol gives you read-only access.
    GithubURI.PNG

  2. If you are using a secure connection you might be required to configure your public key. On GitHub go to Account Settings -> SSH Public Keys and choose Add another public key
    GithubAddPublicKey.PNG

  3. Copy contents of your public key file in the Key field. Typically you can find your public/private keys in .ssh directory in your home directory on your file system
  4. Confirm adding public key by selecting Add key button
  5. Login to Orion and go to Repositories link
    Orion Repostories link.png

  6. Choose Clone button and copy the your Git repository URI into the Repository URL input
    Clone git repository dialog.png

  7. You will be prompted for credentials.
    Orion credentials.png
    1. If you added the public key to github, then you need to copy the contents of your private key file (typically in your .ssh directory underneath your home directory) into the Private key: field. If your key defined a passphrase, supply it also.
    2. If you are using ssh login, input your credentials
      Ssh username - username
      Ssh password - password
  8. Confirm credentials and wait until your repository is cloned

For more information about using Git with Orion, see the Orion User Guide.