EGit Contributor Guide - Obtaining Sources

# Obtaining Sources

EGit and JGit are self hosted in Git. You can browse the repositories on the web: EGit, JGit

The first section below describes how to clone a repository and can be skipped if you have done this before.

The next section lists the repositories and their URLs.

## Cloning

### On the command line

    git clone <enter URL>

After that, import the projects into Eclipse using Import > Existing Projects into Workspace.

### Using EGit (see download page)

First, verify that the default repository folder as set on the main Git preference page is to your liking.

Then, clone the repository and import the projects:

- Open File > Import... and select Git > Projects from Git
- Selet URI
- Enter the URL (see next section)
- Import existing projects into the workspace from the newly created working directory

## Repositories

To develop EGit, the EGit and JGit repositories are needed, the others are optional. To develop JGit, only JGit is needed.

### EGit

URL: https://git.eclipse.org/r/egit/egit.git

This is the main repository, where the standard EGit feature is developed. It contains the code for the UI and Eclipse integration.

### JGit

URL: https://git.eclipse.org/r/jgit/jgit.git

This is the Java implementation of Git used by EGit, for working with Git repositories.

### EGit GitHub Integration

URL: https://git.eclipse.org/r/p/egit/egit-github.git

EGit also provides tools for integrating with GitHub and Mylyn tasks.

For getting the dependencies, open the file `org.eclipse.mylyn.github-feature/github.target` ( view on web) and select Set as Target Platfrom.

### EGit PDE Tools

URL: https://git.eclipse.org/r/egit/egit-pde.git

EGit also provides tools for integrating with PDE Build and Eclipse RelEng Tools. If you are an Eclipse developer using PDE Build and/or the Eclipse RelEng tools you might be interesting in the following as well. Otherwise you might just skip this section.

In addition to the dependencies required for JGit and EGit you also need Eclipse PDE (>= 3.6.1) as well as `org.eclipse.releng.tools` in your target platform or checked out from CVS in your workspaces.