How to import a Project into bitbucket repository from Android Studio?

Muhamed Krlić picture Muhamed Krlić · Sep 30, 2013 · Viewed 89.5k times · Source

So basically I have an Android Studio project on my local computer and I need to add it into my BitBucket repository I created online. I just can't get it right with Android Studio. I can't upload files from Android Studio project to my BitBucket repository.

How can I do such a thing?

Answer

Abdelrahman Aly picture Abdelrahman Aly · Sep 26, 2016

Here is how I did it without plugins:

  1. Create the repository on your Bitbucket account

  2. Create your project in Android Studio

  3. In Android Studio, Go to VCS

  4. Choose 'Enable version control'

  5. Choose Git and press OK

  6. Right click on your project, choose Git then click Add

  7. Open Terminal in Android Studio

  8. Go to your Bitbucket repository Overview

  9. Click on 'I have an existing Project'

  10. Copy the 'git remote add origin ... etc.' line to your terminal and press enter

  11. Click on 'Commit Changes', write your comment then press Commit and push

Also add the 'git push -u origin master' in the terminal at part 10 of above