eclipse source control with bitbucket
Using Bitbucket with Eclipse is almost the same as GitHub.
Here is the exact step-by-step setup for Eclipse + EGit + Bitbucket.
✅ Step 1: Install EGit in Eclipse (If not already installed)
Most Eclipse versions include EGit.
Check:
Help → About Eclipse → Installation Details → Plug-ins → search “EGit”
If missing:
Help → Eclipse Marketplace → search “EGit” → Install → Restart Eclipse
✅ Step 2: Create a Bitbucket Repo (if you don’t already have one)
Go to:
https://bitbucket.org
Then:
-
Create repository
-
Choose:
-
Git
-
Add README (optional)
-
-
Once created, copy the HTTPS URL like:
✅ Step 3: Share Your Eclipse Project to Git
If your project already exists in Eclipse:
-
Right-click project
-
Team → Share Project
-
Select Git
-
Choose/Create a local repository
-
Finish
Your project is now under Git.
✅ Step 4: Add Bitbucket as Remote
-
Right-click project
-
Team → Remote → Configure Push to Upstream
-
In URI field, paste your Bitbucket repo URL:
-
Authentication:
-
Username: your Bitbucket username
-
Password: Bitbucket App Password (NOT your login password)
-
๐ Important — Bitbucket Requires an App Password
If you do not have an app password:
-
Go to Bitbucket Settings
-
Personal settings → App passwords → Create app password
-
Give permissions:
-
Repository: Read -
Repository: Write
-
-
Copy the token
Use this app-password in Eclipse.
✅ Step 5: First Commit & Push
-
Right-click project → Team → Commit
-
Select your files → write commit message
-
Click Commit and Push
-
Select branch
main(ormaster) -
Finish
Your Eclipse project is now uploaded to Bitbucket.
✅ Daily Workflow
Pull latest
Right-click → Team → Pull
Commit
Right-click → Team → Commit
Push
Right-click → Team → Push to Upstream
๐ Useful Git Views in Eclipse
Enable:
-
Window → Show View → Other…
-
Select:
-
Git Staging
-
Git Repositories
-
Git History
-
These are extremely helpful for debugging.
Comments
Post a Comment