littlebigtomatoes

Design.Create.Smile.

Git and Visual Studio Are Awesome Together

| Comments

I love Visual Studio and I love git too. What can be even better than this? Visual Studio 2012 integrated with Git. The two together are pure awesomeness and I fell in love with them.

Git Source Control Provider

There is a provider that you can install in visual studio 2012 and you will get git integration. It can talk to tfs, if you use git there. IT can create local git repos and even can clone repositories from github or from other git hosting servers.

To get the source control provider installed, you need to download and install the Git Source Control Provider package from codeplex. Once you are finished, launch Visual Studio and just open team explorer. You can connect to TFS hosted project or to local git repositories.

Git Source Control Provider

Getting familiar

You can create a new repo by just providing the folder name.

Creating a new Git repo

Once you are done, navigate there using git bash and you will see that it is a proper git repo.

New repository from git bash

You can add existing local repos as well by providing the path

Adding existing git repositories

Clone existing repos form github

Cloning repos from github

Nice touches

There are several things to like in the visual studio git integration. You can change your git settings from git explorer such as gitignore file, your email, the root folder for your repos, even it can get your images for you, to make the history to look nicer.

There is also a super nice and clean looking diff tool for you to go through the differences in commits.

Nice and clear diff tool in IDE

The Bad

The one thing I do not like is that there is no way to open the solution from the ide. You need to browse out the solution manually. Obviously, this does not happen when you clone from TFS. Little inconvenience, but still tolerable though.

Now go download it and use it. Cheers!

Comments