EGit
Subscribe

From OpenNMS

Jump to: navigation, search

EGit is an Eclipse plugin that uses a pure Java implementation of Git (JGit) to enable Eclipse projects to be controlled by a Git repository. As an Eclipse source control plugin it’s not complete yet, still under development, but it has a lot going for it and gives you some goodies and visual clues on the state of your branch. I grabbed most of the info from here

Installing EGit

Add the EGit update site to Eclipse and install it like any other plugin.

Make Eclipse aware of the project’s Gitness

After you have imported an Eclipse project into the workspace you can make the project aware of it's gitness through the project context menu. From the Eclipse project context menu choose Team→Share

This will bring up the 'Share Project' dialog box, if you installed the EGit plugin Git will be an available repository type. Select Git then click NEXT.

The 'Configure Git Repository' dialog box is now open. Your project should be displayed, on the right side lists the Repositories for your project, you will want to click the little drop down arrow on the far left to display all of the repositories. If its anything like mine it will show '../.git' under the Repositories section. Select that repository then click Finish. Your project is now Git aware. All of the current EGit, Git commands are accessed through the project context menu under the Team menu item.

The current commands are:

  • Apply Patch
  • Add to .ignore
  • Commit
  • Update Index (Refresh)
  • Show in Resource History
  • Assume Unchanged
  • Add to Version Control
  • Remove from Version Control
  • Branch...
  • Reset to...
  • Push to...
  • Fetch from...
  • Disconnect