egit2

If you have read through a few of my blog posts you can probably see that I like PHP, ZendFramework, and Zend Studio, I have also recently moved from Subversion to Git for my source control needs.

I used to use the subversion plugin within eclipse and have now moved to the git plugin, which is not stable but I have not had a problem with it yet! (crossing my fingers) although I do most of the heavy git stuff on the command line.

egg-incubator

You can find out a little more info on the Egit plugin on the JGit/EGit page with the reminder that the plugin is not officially supported bu the eclipse team as yet as it is only in the eclipse incubator.

A great place to get some more information is on the EGit projects Google code home page, or just read on and I will show you how you can get installed with no hassle in to your eclipse or ZendStudio IDE, I will be using ZendStudio for this post.

  1. Open up your IDE and browse to the Help > Install New Software… menu, click on the Add button to begin entering the information for the EGit update site.
    Name: EGit
    Location: http://www.jgit.org/updates
    zs-egit1
  2. Check the box for the Eclipse Git plugin and click next.
    zs-egit2
  3. Review the plugin your going to install, and hit next to continue.
    zs-egit3
  4. You will now be asked to review the license terms, if you choose to you can read through the license and when your finished click the radio button to accept the terms and then click on the finish button.
    zs-egit4
  5. Zend/Eclipse will then download and install the plugin, you can click the “Always run in background” if you have some other important work to finish.
    zs-egit5
  6. Once completed you will get a recommended restart message, go ahead and restart your IDE to complete the install.
    zs-egit6

When your IDE has reopened you will have the plugin installed, don’t be alarmed that it looks the same before the installation as the changes will be found in the right click context menus, and the new view (TEAM) you now have access to.

To create or start managing your git projects through your IDE there are two simple steps..

  1. Right click on your project and click on the Team > Share project link
    zs-egit7
  2. Select the Git repository type and click next.
    zs-egit8
  3. If you are just starting your git repository for the project you will have to click create, and if you have a .git folder all ready in the project you can highlight the project and click on next.
    zs-egit9
  4. Once completed you project will have the branch name beside it, in my case [Master] and will be ready for work.
    zs-egit10

To work with your Git project just right click the project and search for the familiar git commands under the team menu.

Share my posts:
  • Print
  • Twitter
  • del.icio.us
  • Facebook
  • Digg
  • DZone
  • LinkedIn
  • PDF
  • RSS