Salesforce – Bitbucket Version Control (Eclipse, Force.IDE, EGIT) Part – 2
Salesforce Version Control – Move Force.com code to Bitbucket using Eclipse , Force.com IDE, EGIT (Part – 2)
In Part -1, We Installed Force.com IDE in Eclipse. This is final section where we will import force.com projects into Eclipse and then move to Bitbucket repository. How? Please follow the steps explained below:
If you have not installed Force.com IDE, Please refer
Step 1: Check if EGIT is already installed or not in your Eclipse. Go to Eclipse Marketplace and look for EGIT
Here, It’s installed but in case it is not installed for you, go ahead and install.
Now, it’s time to get your salesforce project inside Eclipse
Step 2: Change Perspective to Force.Com
Step 3: Create Repository in BitBucket. You can create your Bitbucket account if you don’t have one.
- Give The Repository Name
- Select Git
- Laguage as ‘JAVA’
- Click Create Repository
Step 4: You should see below screen. Click on ‘I am Starting from scratch’ link
Step 5: Scroll down and you will see the URL link. Copy and save this URL link, we will need it later
Step 6: Now it’s time to import your Force.com Project
Go to Eclipse. Right click inside Eclipse Explorer and open Force.com Project
Step 7: Enter Project name. Your Salesforce userid, password, security token and click next. You will get the below screen with all available classes, triggers etc. Click Finish
Now, you have your force.com stuffs in Eclipse!
Step 8: Now, we have to configure the Force.com Project. Click right click on Project > Team > Share Project
It will open a new window.
Step 9: Click Create and provide your local folder address and Finish
Step 10: Commit the project.
Right Click on Project > Team > Commit
Enter comment and click Commit button.
If you get error for ‘No Staged Item’ then add the items you want to stage to index using ‘Add Index’ and then commit. After successful commit you will your force.com project in GIT local repository
Step 11: Now it’s time to configure BitBucket
In Git Repository perspective, right click on Remotes > create remote it will open a new window –
Enter you Bitbucket Name in Remote Name. Ensure Push is selected and click OK.
Step 12: Click ‘Push’ Add button
Step 13: Enter your Bitbucket URL you saved in step 5
Enter your Bitbucket password, Check Mark Secure Store and click Finish
Step 14: Now add mapping as master for both local and remote
Step 15: Click OK and then Click ‘Save and Push’
On Successful push, you will get success message
Step 16: Login to BitBucket and verify your repository
Congratulations! You did it!
You may also like :
All data and information provided on this site is for informational purposes only. thearsana.com makes no representations as to accuracy, completeness, correctness, suitability, or validity of any information on this site and will not be liable for any errors, omissions, or delays in this information or any losses, injuries, or damages arising from its display or use. All information is provided on an as-is basis.