

You can also check the command git in Console panel. To add files, right click on the main project node and select Add This message is shown because you have not added files to be commited. If you now click on VCS button or on Commit Changes… option, you get the message: Nothing to commit. By this way, you are sure that the remote add command has been successfully executed. You can now execute git remote -v to show the URLs that Git has stored for the short name to be used when reading and writing to the remote. Now, execute the first command highlighted before in order to add the URL of the Bitbucket repository as a remote to your local repository. By default, the terminal opens at the location of your project. Next, clicking on the Terminal button at the very bottom of the window you will get into a console of the operative system.

You can check it in the Console panel of the 9: Version Control view. This operation is equivalent to a git init command.

Note that archives are now in brown color. Then, in order to add your project to a Git VCS, go to VCS menu and select Enable Version Control Integration… as in the following images are shown Next, create a new project or open an existing project in Android Studio. In the picture above a couple of git commands have been highlighted because they are going to be used later. In this post, we are going to use Android Studio version 1.4.įirst of all, you have to create a new repository in Bitbucket, for example, AndrodStudioBitbucketTest. Basically, you have to know that your first commit must be manually executed instead of using an option from the main menu or from popup menus. Instructions for pushing an project into a Bitbucket repository for the first time are very confusing, and this process can become very frustrating if the right steps are not followed. Android Studio can directly work with Github, but not with Bitbucket.
