Configure Android Studio with Bitbucket team repo

前端 未结 7 1866
长情又很酷
长情又很酷 2021-01-31 02:59

I am trying to configure Android Studio to work with my team repo on Bitbucket. What I would like to do in the first place is to push my local project onto my team\'s repo.

7条回答
  •  情深已故
    2021-01-31 03:27

    So I am assuming you have a local project and you need to import it into your Repository in BitBucket. Since you already have the BitBucket plugin installed, follow the below steps:

    1. Goto VCS Menu > Import into version control > Share Project
    2. You will have to give your credentials when prompted.
    3. On the next dialogue, give a name and a description to your project and then click OK

    Now you have got your project imported to BitBucket. Now to checkout a project from BitBucket:

    1. VCS > Checkout from version control > BitBucket
    2. Select the project you want to checkout

    After you have added the project to BitBucket, you will see a menu called Git in you VCS menu, which has all the options of Git.

    Now depending on the version of android studio and the BitBucket plugin you are using, you are likely to get some errors while doing these. I did these using Android Studio 0.8.2 and Bitbucket plugin version 1.2.2.

    Also make sure in the Android Studio Preferences > Version control, the directory is set to and the VCS to Git. Unless you are using Mercurial or anything it is advisable to remove any VCS other than Git from there. If all these are right everything should be working well.

提交回复
热议问题