Search Engine

Thursday, November 11, 2010

Using EGit with Github

7.1. Github

Github is a popular hosting provider for Git projects and if you repository is public to everyone Github hosting is free. To use GitHub create an account on the Github Website . During the sign-up you will be asked to provide a "passphase". This "passphase" is later needed to push to Github from your local repository.

7.2. Create Repository in Github

Create a new repository on Github, e.g. "de.vogella.git.github".

After creation of your new repository Github tells you what to do if you would inport via the command line. As we are going to use EGit we can ignore this information.

7.3. Push project to Github

Create a new project "de.vogella.git.github" and put it under version control. Right-mouse click on your project and select "Team" -> "Push". A dialog pops up. Maintain the following data. Adjust the hightlighted line so that you are using your user and your project name.


Maintain your passphase which you maintained during the Github setup.

Select your branch (you should currently only have master if you followed my tutorial), press "Add all branches spec" and select next.

Press finish.

If you now select your github Dashboard and then your project you should see the commited files.

7.4. Clone repository from Github

Use the same URI you use to push to Github to clone the project into another workspace.

7.5. Mylyn integration with Github

Eclipse Mylyn is a productively tool for programmers. David Green and others is working on a github Mylyn connector. Please see Github Mylyn Connector Wiki .


Post a Comment