Installing msysGit – Git for Windows

I really enjoy using Git and thanks to all the built-in functionality in Visual Studio, using it on a daily basis is a great experience. Unfortunately not all Git commands are in the IDE yet, so when I need to do something outside of Visual Studio, I go to command-line. Before you can use the command-line tools, you need to install Git for Windows (msysGit). You can find the download at: http://msysgit.github.io/

image

The way that you will know if you need to have the tools installed is to look at Visual Studio:

image

Clicking on Install will bring up the Web Platform installer and take you through the install process. 

I prefer to go directly to http://msysgit.github.io/, and once you get there, click on the big Download button and wait for the setup wizard to start.

image

The wizard is pretty straight forward, so you can just Next through the first 3 steps:

image

image

The “Select Components” section lets you pick what should be installed, shortcuts, and file associations. I’m not a fan of icons on my desktop so I leave that unchecked. Checking the Windows Explorer Integration checkbox gives me the ability to right-click on any folder in Windows Explorer and initialize a local Git Repo.

image

image

In the PATH environment section, I select the second option “Use Git from the Windows Command Prompt”. I’m much more comfortable with using Git right from the regular command prompt than Bash, which is why I select that option. In reality, you should go with the option that makes most sense to you. Git Bash gives you access to the same Git commands as what you get from Command-line, but it includes some Unix commands that are not available in Windows command line.

image

Next step is the line-ending conversion. I go with the first option since it’s recommended when using Windows. It will treat line endings windows-style and commit them Unix-style.

image

image

And that’s all. Now you can open up your command prompt, and start using git right from there: 

image

If you want to get started with Git and be successful with it, while staying in Visual Studio, I created a Pluralsight course that you may want to check out: Git for Visual Studio Developers.

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? *