Home » Android » Integrate Visual Studio online Git Repository to Android Studio 1.0.2

Integrate Visual Studio online Git Repository to Android Studio 1.0.2

Posted by: admin June 15, 2020 Leave a comment

Questions:

I am using Visual Studio online for my development process. And I want to integrate my Android Studio 1.0.2 codes in it. However, as I know Android Studio has no TFS Plugin. That’s why, I want to use Git for source control.

How can I integrate Visual Studio Online Git repository to Android Studio 1.0.2. What are the steps that should I follow?

How to&Answers:

First you need to create a Team Project in Visual Studio Online that is configured to use Git as it’s Source Control Repository:

So, log on to you VSO account (or create one if you don’t have one yet):

enter image description here

Create a new project from the dashboard:

enter image description here

In the “New Project Wizard” that comes up, make sure you select the use of Git:

enter image description here

Wait for the project to be created and click Navigate to Project when it’s done. In the project’s dashboard navigate to the Code tab:

enter image description here

And on the code tab you’ll find your fresh Git repository.

enter image description here

You also get a notification that you must enable Basic Credentials so that git can connect (git doesn’t support connecting to the Microsoft Account/Windows Live ID directly). If you haven’t done so, now would be a good time.

Open your profile to set that up:

enter image description here

And configure Basic Credentials:

enter image description here

Now you’re ready to connect to Android Studio and open your Git repo on Visual Studio Online:

enter image description here

Enter the Git repository location that was highlighted on the repository page before:

enter image description here

And your Alternate Credentials as you had defined them.

Android Studio will now ask you whether you want to create a project here. If you choose yes, you’re all setup to start on your new project.

If you choose no, you can move an existing project into the repository root you just created and commit and push it.