Getting started with Git and TFS

So you’ve heard your friends talk about Git and you want to give it a try!

This year, Microsoft added Git integration with TFS Service.  This allows you to create a team project and use Git instead of Team Foundation Version Control.  You can only do this on hosted TFS (http://tfs.visualstudio.com/), so if you don’t have an account there yet, go ahead and create one, it’s free to sign up and you can have a team of up to 5 people collaborating with you for free.

Once you have your account created, you can log in and you’ll get to your homepage:

image

Click on the big red button that reads “New Team Project + Git”.  You’ll get prompted for your Team Project Name, a description, Process Template, and the type of Version Control that you want to use (you can pick from Team Foundation Version Control and Git):
image

Click on “Create Project” and about 30 seconds later, you are ready to go:
image

Clicking on Navigate to Project takes me to a very familiar sight: my Team Project homepage:
image

To connect to your new team project from Visual Studio, you will need to install Visual Studio Tools for Git: http://visualstudiogallery.msdn.microsoft.com/abafc7d6-dcaa-40f4-8a5e-d6724bdb980cNote the requirements:
Visual Studio 2012
Visual Studio 2012 Update 2 CTP

Before you can start coding, you will need to clone your repository down to your computer either by running this clone command: 
git clone https://esteban.visualstudio.com/DefaultCollection/_git/GitDemo

Or by following the Clone prompts from Visual Studio Tools from Git.  Now you can start publishing to your local repo and push changes up to the server as needed.

About esteban

One thought on “Pushing to multiple remote Git Repos from Visual Studio

  1. Benjie Ward

    Nice article…I was wondering have you tried combining multiple urls under one remote? (so you can push to two repositories at the same time?)

    It seems like Visual Studio doesn’t play ball and only pushes to the last url listed.

    However If you run a push from the command line to the combined remote it seems to work.


Leave a Reply

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


6 − = three

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>