Importing a remote Git project using Eclipse


Git is an open-source distributed version-control system and is similar to Subversion, Mercurial and similar version control software. While trying to get access to a Git remote repository on Eclipse, I encountered a lot of issues as I didn’t quite know how to go about it, so I decided to write about it.

This guide assumes you already have Eclipse and EGit installed. Eclipse 3.7 (Indigo) already bundles EGit, however if you are using an older version, go to help -> install new software and use the wizard to install the EGit plugin from http://download.eclipse.org/egit/updates.

Here goes:

Import a New project
Import a New project
Clone a project
Click clone a project
Enter your remote repository information
Enter your remote repository information
Select the branches you want to clone
Setup the local storage location for your remote git repository
Setup the local storage location for your remote git repository
Click finish
Click finish
Cloning process
Cloning process
Cloned branches
Cloned branches
Select a wizard to import projects
Select a wizard to import projects
Choosing this might not work
Choosing this might not work
Choosing "Import Existing projects" might lead to this
Choosing “Import Existing projects” might lead to this
Select a wizard to import projects
So choose “Import as General project”
Choose a project name
Choose a project name

Voila! Done!! :D

Notice

Given that your project might not be setup properly on Eclipse, here are some tips to do this:

Open up the filters option
Open up the filters option
Uncheck the resources checkbox
Uncheck the resources checkbox
Modify the project properties
Modify the project properties
And the classpath too...
And the classpath too…

The .gitignore file contains all files that are ignored by your git repository. Also, If you know a better way, kindly let me know.

Here are some resources for learning and trying out Git:

http://gitimmersion.com/

http://book.git-scm.com/

http://www.vogella.de/articles/EGit/article.html

4 thoughts on “Importing a remote Git project using Eclipse

  1. Pingback: Jadwal Bola

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.