Posts

Showing posts from March, 2014

Using Visual Studio Online with GitHub

Visual Studio Online (VSO) requires your Git repository to be hosted in the VSO cloud . In other words, you cannot specify an URL such as https://github.mycompany.com/product/project.git, even if you want to use your existing Git repository. One solution is to set up the local repository to track two remotes. The following are the steps, using Git Bash commands. First, you add Visual Studio Online as the second remote. Go to the CODE page of your project in VSO, click the 'Clone' link. You will see the Git URL. Copy and paste it into the command similar to the following. $ git remote add vso https://mycompany.visualstudio.com/DefaultCollection/_git/project Now you should see two remotes. $ git remote origin vso If you open the .git\config file, you should see two remote sections. ... [remote "origin"] url = https:// github.mycompany.com/product/project .git fetch = +refs/heads/*:refs/remotes/origin/* ... [remote "vso"] url =  https