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:

  1. Create repository

  2. Choose:

    • Git

    • Add README (optional)

  3. Once created, copy the HTTPS URL like:

https://sudhakar@bitbucket.org/sudhakar/myproject.git

Step 3: Share Your Eclipse Project to Git

If your project already exists in Eclipse:

  1. Right-click project

  2. Team → Share Project

  3. Select Git

  4. Choose/Create a local repository

  5. Finish

Your project is now under Git.


Step 4: Add Bitbucket as Remote

  1. Right-click project

  2. Team → Remote → Configure Push to Upstream

  3. In URI field, paste your Bitbucket repo URL:

https://bitbucket.org/yourname/yourrepo.git
  1. 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:

  1. Go to Bitbucket Settings

  2. Personal settings → App passwords → Create app password

  3. Give permissions:

    • Repository: Read

    • Repository: Write

  4. Copy the token

Use this app-password in Eclipse.


Step 5: First Commit & Push

  1. Right-click project → Team → Commit

  2. Select your files → write commit message

  3. Click Commit and Push

  4. Select branch main (or master)

  5. 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:

  1. Window → Show View → Other…

  2. Select:

    • Git Staging

    • Git Repositories

    • Git History

These are extremely helpful for debugging.

Comments

Popular posts from this blog

OVERSOLD BY LINEAR REGRESSION

OVERSOLD BY LINEAR REGRESSION

Top No-Code Algo Trading Platforms in India (2025) – Full Comparison & Ranking