Transfering a project in Eclipse to bitbucket

The past year or so I have really gotten into coding again, to the point where I have been looking at code repositories.  After much research, I’ve settled on Bitbucket.  The first challenge was to get my existing code into the repository from Eclipse.  Thankfully the kind folks at stack overflow had a solution, which I’ve copied here for my own notes.

Original post: Link

 

  1. First, make sure you already installed EGit or other git control plugins on your Eclipse.
  2. Second, add Git Source Control to your existing Android Eclipse Project (local) and create a local Git Repository for the Project, by following the steps below: (or check this video)

    • right click your project -> Team -> share project
    • check the option of “Use or create repository in parent folder of project”
    • select your project
    • click the button of “create repository”
    • hit “finish”
    • right click your project -> Team -> Add to Index
    • right click your project -> Team -> commit
  3. Then push your Project (now is under local Git Source Control) to a Remote Repository such as GitHub.com or BitBucket.org, by following the steps below: (or check this video)

    • right click your project -> Team -> remote -> push
    • type in the URL of the remote repository you are using
    • type in username and password, then hit “next”
    • click the button of “Add All Branches Spec”
    • click “next”
    • click “finish”
Advertisements
Transfering a project in Eclipse to bitbucket

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s