Skip to content

Android Eclipse with Git (EGit)

March 5, 2013

Steps:

1. First download ADT from google. Ensure the latest version.

2. Assume there have a repo in GIT for your project.

3. Define a directory for android project in your local PC

4. From terminal cd to that directory and type git clone git@github.com:wavelet-asia/wavelet-agent-android.git. Your project will be cloned to the directory. Remember to select the correct branch during download or you can specify the branch later.

5. After clone go to ADT(Eclipse) and from new project wizard select the Android Project from Existing code. Browse the directory where you have downloaded your source from GIT.

6. After adding the project right click and go to Properties.

7. Search GIT. If Git is not there in your project properties, you have to add from Help > Install New Software

8. In Install New Software write http://download.eclipse.org/egit/updates or check with google what is the download link for egit.

9. From the dropdown select EGit and install

10. Now right click on your project, from Team click on Share Project

11. Here select the check box (Use or Create repository in parent folder of project) and at the below table select the project

12. Click on Finish and now right click on your project and from team check if you have pull option available. If available try to pull.

13. If you face any problem to pull, right click on project and go to project properties > Git

14. Check the Git Directory, Working Directory and Branch. Match the directories with your project directory. These should be matched. If not then there have problem with share project. So you need to do the steps again.

From → EGit

Leave a Comment

Leave a comment