Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrate Visual Studio online Git Repository to Android Studio 1.0.2

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?

like image 587
Arda Güçlü Avatar asked Jan 16 '15 09:01

Arda Güçlü


People also ask

How do I link my GitHub to my Android studio?

Go to File -> Settings -> Version Control -> GitHub. Enter your email and password used to create GitHub account and click on OK button. Then go to VCS -> Import into Version Control -> Share Project on GitHub. Enter Repository name, Description and click Share button.

Does Git work with Android studio?

Integrate Git into the projectIn Android Studio, go to Android Studio > Preferences > Version Control > Git. Click Test to ensure that Git is configured properly in Android Studio.

Does Visual Studio have Git integration?

Visual Studio has a new Git Repository window, which is a consolidated view of all the details in your repository, including all of the branches, remotes, and commit histories. You can access this window directly from either Git or View on the menu bar or from the status bar.


1 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.

like image 54
jessehouwing Avatar answered Oct 23 '22 09:10

jessehouwing