Use Case
There is a project going on and you join the team in between. Team is using Git for central repository. For you the starting point is to add git project in your Eclipse IDE and start development/enhancement/maintenance.
Solution
Pre-requisite -
Eclipse having Force.com & egit plug-in installed. EGit plugin can be downloaded from http://www.eclipse.org/egit/download/Steps to import your project from Github:-
- Go to Github.com and take URL of the project-
- Open Eclipse IDE and go to New >> Import
- Select 'Projects from Git' from pop-up window
- Select URI and click 'Next'
- Enter repo details as shown below. You only need to enter URL copied from GitHub for your project, 'Host' and 'Repository path' will be populated automatically. You will need to enter your github user name & password. Click on 'Next'.
- From next screen, select all branches you want to have. To be safe, add all branches. Click on 'Next'
- In next screen, keep default options and click on 'Next'.
- In next screen, eclipse will fetch your project from github repo, it may take some time. Once project is fetched, select 'Use the New Project Wizard' radio button and click on 'Finish'.
- On new pop-up window, select 'Project' under 'General' and click on 'Next'
- Enter the name of project in 'Project name' box and click on 'Finish'.
You have your project created in eclipse, whose code base is from Github repo. You need to add 'Force.com Nature' to this project, if not already. Also, you need to add your salesforce credential to start working.
Let me know if you have any question regarding this.
Comments
Post a Comment