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

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

3 thoughts on “Video: Git and Visual Studio Online

  1. Dew Drop – March 11, 2015 (#1972) | Morning Dew

    […] Video: Git and Visual Studio Online (Esteban Garcia) […]

  2. Video: Getting started with Backlogs in Visual Studio Online | ALM Guide – Esteban GarciaALM Guide – Esteban Garcia

    […] time, I showed you how to connect to a Git Repository hosted in Visual Studio Online.  Today, we are going to continue with the Team Project that we created and I am going to show you […]

  3. Fred

    I’m trying to copy TFS test cases from our 65 project to 66, but can’t find a way. I can copy within 65 just fine. How can I copy Test Cases from 65 to 66 ? I can’t click and drag, no right click copy commands nothing. Any help would be greatly appreciated


Leave a Reply

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

Are you human? *