Zend Studio and Git(Hub)

I have been using Zend Studio as my IDE for years, and for version control I have always used SVN. Zend Studio Eclipse plays very nicely with SVN out of the box, but lately it seems Git has gained a lot of momentum so I thought I would look into it. It turns out Git is awesome and is much better suited for many of the things I do. (See: Why Git?)

But will Git play nicely with Zend Studio 8?

Thanks to eclipse plugins, you bet it will!

How to set it up

First you will need to install EGit, the Git plugin for eclipse. The easiest way to do this is to add the EGit repository to Zend Studio. Open up Zend Studio and do the following:

  • Navigate to Help -> Install New Software
  • Click the “Add..” button to add the EGit repository (http://download.eclipse.org/egit/updates)![Adding the EGit Repository]3
  • Agree to everything you see (of course read it first)
  • Zend Studio will restart and you will have git support

Adding Keys

To access git hub you need to use public and private SSH keys. If you have never done that before, here is how to create a key using Zend Studio:

  • Open up Zend Studio’s preferences window
  • Navigate to General->Network Connections->SSH2
  • Select the key management tab and click “Generate RSA key”
  • You will see that the text box is now filled with “ssh-rsa” and then a bunch of giberish. That is your new public keyCreating SSH Key
  • Click the “Save Private Key” Function and confirm that you want to save it without a passphrase
  • Login to your GitHub account and go to Account Settings->SSH Public Keys
  • Click add a public key and enter the name (e.g. my laptop) and paste the public key text generated by Zend Studio into the box

Now you will have access to github from Zend Studio

My next post will be on how to clone projects in github and add them as Zend Studio projects.

comments powered by Disqus