Getting a functioning Egit plugin

by jenny on 07 January 2010 - 06:56pm in
  • Download Eclipse for PHP Developers, version 3.5.1 (Galileo)
  • Go to Java > Installed JREs and make sure a version 1.5.0_11 or later is available (it doesn't have to be the checked one)
  • Install the egit plugin
    • Go to Preferences -> Install/Update -> Available Software Sites and add:

    • Go to Help -> Install New Software, select JGit, and check Eclipe Git Plugin
    • Continue through prompts to finish installation
  • Clone or create a git repository inside your workspace using your favorite tool
    • This can be done with eclipse by going to File -> Import -> Git Repository
  • Unless your repository was already an eclipse project and contained a .project file, create a new eclipse project
    • Go to File -> New PHP Project
    • Keep the default selection "Create new project in workspace"
    • Make sure that the directory name of your git repository matches what you enter for Project name
  • Finally, enable git features on the new project
    • Right click on the project, go to Team -> Share Project, and select Git
    • Select the current project and path as the repository location
  • At this point, right-clicking on a file in your project and choosing Team should show relevant git commands

Sources:
http://cho.hapgoods.com/wordpress/?p=159
http://code.google.com/p/egit/wiki/EGitQuickGuide