Pushing to multiple remote Git Repos from Visual Studio

I’m working on an application that uses Git hosted by Visual Studio Online.  My development site is hosted as an Azure website.  I want to be able to push directly from my desktop to Azure, which is pretty simple to configure from the Azure portal by clicking on “Integrate source control”

image

Then select Local Git repository

image

You then get instruction on how to setup the remote repo from command line:

image

So although I can now push to either of my remote repo’s from Command-line (remember, my original Git Repo is in VSO), I can also do so from Visual Studio.  In Team Explorer, from the Unsynced commits section, you get the “Push to” dropdown where you can pick your remote:

image

Then click on Push and you are done!

About esteban

Esteban is the Founder and Chief Technologist at Nebbia Technology, an ALM consulting and Azure-powered technology company. He is a software developer with a passion for ALM, TFS, Azure, and software development best practices. Esteban is a Microsoft Visual Studio ALM MVP and ALM Ranger, Pluralsight author, and the president of ONETUG (Orlando .NET User Group).


Leave a Reply

Your email address will not be published. Required fields are marked *

Are you human? *