Working with Git and Eclipse

From Joomla! Documentation
(Difference between revisions)
Jump to: navigation, search
(add note about versions)
(Installing Eclipse with PHP and Git)
Line 7: Line 7:
 
=Installing Eclipse with PHP and Git=
 
=Installing Eclipse with PHP and Git=
 
To Install Eclipse with PHP and Git, follow these steps:
 
To Install Eclipse with PHP and Git, follow these steps:
# Install Eclipse for Javascript Web Developers from [http://eclipse.org/downloads/ Eclipse Downloads]. This will give you XML and HTML file editing.
+
# Install Eclipse for Javascript Web Developers from [http://eclipse.org/downloads/ Eclipse Downloads]. This will give you a version of Eclipse with XML and HTML file editing (but without eGit or PHP).
# Navigate to Eclipse→Help→Install New Software, as shown below. [[File:eclipse-install-372-screenshot-01.png|frame|none]]
+
# To add eGit and PHP, navigate to Eclipse→Help→Install New Software, as shown below. [[File:eclipse-install-372-screenshot-01.png|frame|none]]
 
# Select Indigo update site as shown below. [[File:eclipse-install-372-screenshot-02.png|frame|none]]
 
# Select Indigo update site as shown below. [[File:eclipse-install-372-screenshot-02.png|frame|none]]
 
# This will present a list of all of the available Eclipse plugins. Select the three git options under Collaboration, as shown below. [[File:eclipse-install-372-screenshot-03.png|frame|none]]
 
# This will present a list of all of the available Eclipse plugins. Select the three git options under Collaboration, as shown below. [[File:eclipse-install-372-screenshot-03.png|frame|none]]

Revision as of 16:50, 9 May 2012

Introduction

This article discusses how to set up and use eGit (the Eclipse version of Git) with Eclipse version 3.7.2 (available as of March 2012). It is important to have the latest version of Eclipse in order to use the latest (and most stable) version of eGit.

If you have an older version of Eclipse, it is quite easy to try the latest version without removing your old version. Simply install the new version in a different directory than the existing Eclipse version and use the same Eclipse workspace. All of your projects and preferences are saved in the workpace and will be available to the new Eclipse version. If for some reason you need to go back to your old Eclipse version, just close the new version and start the old one.

Installing Eclipse with PHP and Git

To Install Eclipse with PHP and Git, follow these steps:

  1. Install Eclipse for Javascript Web Developers from Eclipse Downloads. This will give you a version of Eclipse with XML and HTML file editing (but without eGit or PHP).
  2. To add eGit and PHP, navigate to Eclipse→Help→Install New Software, as shown below.
    Eclipse-install-372-screenshot-01.png
  3. Select Indigo update site as shown below.
    Eclipse-install-372-screenshot-02.png
  4. This will present a list of all of the available Eclipse plugins. Select the three git options under Collaboration, as shown below.
    Eclipse-install-372-screenshot-03.png
  5. Then select the PHP Development Tools (PDT) option under Programming Languages as shown below:
    Eclipse-install-372-screenshot-04.png
  6. Then click through the rest of the wizard and accept the terms of the license agreement. At this point, the requested plugins will be downloaded. After this, you will be prompted to restart Eclipse (which you should do).

At this point, you should have PHP and eGit installed with Eclipse. Confirm this by selecting Window→Open Perspective→Other and make sure that the PHP and Git Repositories perspectives show on the list.

Creating a Project from a Remote Repository

Git-eclipse-screenshot-01.png
Git-eclipse-screenshot-02.png
Git-eclipse-screenshot-03.png
Git-eclipse-screenshot-04.png
Git-eclipse-screenshot-03a.png
Git-eclipse-screenshot-04a.png
Git-eclipse-screenshot-05.png
Git-eclipse-screenshot-06.png
Git-eclipse-screenshot-07.png
Git-eclipse-screenshot-07a.png
Git-eclipse-screenshot-08.png
Git-eclipse-screenshot-09.png
Git-eclipse-screenshot-10.png
Git-eclipse-screenshot-11.png
Git-eclipse-screenshot-12.png
Git-eclipse-screenshot-13.png
Git-eclipse-screenshot-14.png
Git-eclipse-screenshot-15.png
Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox