Skip to content
Jack-Shi edited this page Jun 7, 2012 · 3 revisions

E-Git User Guide

Step 1. Fork the Project:

  • Go to project page (https://github.com/Polonious/Regimo) on the github site.
  • Click 'Fork' Button on the right of Project Title.
  • Click 'Fork to ${Your User Name}' Button on the pop up window to confirm Fork. As a result, you can see a forked repository called ${Your User Name}/Regimo on your account.

Step 2. Set up SSH Keys:

  • Open your id_rsa.pub file under ~/.ssh/ (Generate a new SSH key if you don't have)
  • On the GitHub site Click “Account Settings” > Click “SSH Keys” > Click “Add SSH key”
  • Open the id_rsa.pub file and copy the text into Key field on the right then click 'AddKey' button to complete this step.

Step 3. Install E-Git - Git Team Provider plugin in Eclipse

Step 4: Set up project on local

  • Open Git Repository Exploring Perspective.
  • Click Clone a Git repository option on the window.
  • In the pop up Clone Git Repository Window, fill the URI with the one you get from your forked repository home page like git@github.com:${Your User Name}/Regimo.git . All the other fields will be filled automatically and some filed are kept empty.
  • Click Next, You might be asked to provide your passphrase for your id_rsa if you have one.
  • Click Next, change remote name as ForkedRepo or any other name in order to be different from the remote original repository later.
  • Click Finish and you will see the project on the Git Repository Exploring window.
  • Go to Work Directory, right click the project you want to check out, choose 'Import Projects', click 'Import as general project' radio button and click next and then click finish.
  • Now open Java Perspective and you will see your project there.

(Skip how to build the project)

Step 5: Push Changes to Repository

Make a change on a file and right click this file, choose Team and then choose Commit. Then, you will see a up arrow with a number on the project name, number shows how many changes you have committed in your local. Now, right click the project, choose Team and then choose Push to Upstream, Click OK so all changes will be pushed to your Forked Repository.