So I'm running the latest version of Android Studio (0.6.1) and want to push to BitBucket because it has free private repos (let's avoid any Github vs BB comments). I've created a simple repo to test the VCS functionality and am using a new Android project with the default configs except the app is called 'TestApp' and the project file is located on my desktop.
I've performed the following steps:
- VCS>Import into Version Control>Create Git Repository
- Use default path: "C:\Users\User\Desktop\TestApp"
- VCS>Git>Checkout from Version control
- Give https://sanecito@bitbucket.org/sanecito/testrepo.git as VCS path and "C:\Users\User\Desktop\" as parent directory, and testrepo as folder
- When given "Would you like to create an Android Studio project for the sources you have checked out to C:\Users\User\Desktop\testrepo", hit "Yes"
- Create project from existing sources
- Project name: testrepo Project location: C:/Users/User/Desktop/testrepo
- Open project in new window
- Add textfile with text "test" to testrepo in IDE, "Do you want to add the following file to Git? [...]">Yes
- Hit VCS with green arrow button in the menu (Commit Changes)
- Mouse over 'Commit' button, hit commit and push
- Hit 'Push' in next window
Push window vanishes and there's a brief pop-up window at the bottom that there's "Nothing to push" despite showing in the previous window that there were changes to the project There are several issues with my process, the first is that I would like to create a vanilla Android project and then push to the empty repo, but in my trying to link it it creates a new project (abet without the vanilla app). Even with that new project when I hit commit and push it isn't actually pushed to the repo.
I'm aware that there's this question: How to import a Project into bitbucket repository from Android Studio? However, none of the of the answers are useful to solving what should be a simple issue as they aren't descriptive (i.e. how am I even supposed to setup the plug-in). Could someone tell me how to do two things:
- Setup Git with an existing Android project and application open and push to a repo on BitBucket
- Setup Git config with a fresh Android Studio install such that a person can pull from a BitBucket repo Android app code to work on
The solution in full can be found here: https://www.youtube.com/watch?v=IBEbJUEDWZQ
I typed up how to setup the plugin and how pull from a non-empty repo (feel free to use parent directory of your own choosing, I just felt this lead to a clean setup), the video has how to push to an empty repo
Setting up BitBucket plugin
Pull BitBucket repository onto local computer repository