Boldijar Paul
Boldijar Paul

Reputation: 5495

Android Studio add current project to a git repository

I currently have a android project and I want to add it to my Visual Studio Online repository. How can I do that?

If I enable version control integration and choose git I will have a local git repository..I want to set somewhere the URL of my repository such as

https://myusername.visualstudio.com/DefaultCollection/_git/ProjectName

Is this possible?

Upvotes: 0

Views: 1658

Answers (1)

mithrop
mithrop

Reputation: 3353

This Git command will add a reference to your remote repository with the name "origin" to your local repository.

git remote add origin https://myusername.visualstudio.com/DefaultCollection/_git/ProjectName

More info : https://help.github.com/articles/adding-a-remote/

Upvotes: 1

Related Questions