



Give as VCS path and "C:\Users\User\Desktop\" as parent directory, and testrepo as folder.Use default path: "C:\Users\User\Desktop\TestApp".VCS>Import into Version Control>Create Git Repository.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. Now, whenever you have worked on your code, commit the changes with a message git commit -m "What I just did to my code" and you will have the ability to roll back those changes if they go wrong.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). Have a look about and you'll see the code. The the last line does the push: git push -u origin master.Īnd you end up with a Github repo like this. The next one you need to do is git remote add origin which will be different for you - so copy that line from your screen into the terminal. You'll recognise it as you've just done some of those steps. When you create the repository, the initial screen shows you a load of code. Go to your Github home page and add a new repository - call it what you want and add some text in the 'about' field.

We now want to get this to be remote too. Then type git commit -m "Initial commit" - that starts your local repository and populates it with code. the full stop adds everything make sure it's there! At the root of the project (it should open there) type git init. At the bottom of Android Studio, there's a terminal option. Remember, I'm on a Mac so this may differ slightly for you. That was a challenge for some reason - odd Gradle issues as is so often the case! Created a blank application called GitHubHelp.
