Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

So Visual Studio officially supports Git now. What does that mean?

I just read an extremely interesting article that apparently as of this past Visual Studio 2012 update, it now has official Git support built in.

My question is, what does that mean exactly? Does this mean that TFS servers can now host Git repositories? Or, does Visual Studio use something like git-tfs behind the scenes to use regular TFS repositories with a Git bridge? Or does this apply to TFS servers at all? Also is using Git outside of Visual Studio which is hosted on TFS plain ol' vanilla git, or is it like the git-tfs bridge?

Also, is there any documentation yet about converting a TFS repository to a Git repository with this support?

like image 451
Earlz Avatar asked Jan 30 '13 17:01

Earlz


People also ask

What is Git in Visual Studio?

Visual Studio has a new Git Repository window, which is a consolidated view of all the details in your repository, including all of the branches, remotes, and commit histories. You can access this window directly from either Git or View on the menu bar or from the status bar.

Does Visual Studio need Git?

Visual Studio Code has git support built in. You will need to have git version 2.0.

Is Git part of Visual Studio?

Visual Studio has Git tooling built directly into the IDE, starting with Visual Studio 2019 version 16.8. The tooling supports the following Git functionality: Create or clone a repository. Open and browse history of a repository.


1 Answers

Visual Studio Online hosts git repositories and provide integration to TFS work item tracking and builds. We store this information in a proper git repository - it's not a transparent git-tf bridge. Instead, we store git references and objects, although we store them in a SQL Server (SQL Azure) instead of a traditional on-disk git repository format. We do this to integrate with the existing TFS manageability and Team Foundation Service scaling.

Team Foundation Server, the on-premises product that resides in your data center, from TFS 2013 supports git repository hosting. Many features arrive on the hosted Visual Studio Online before arriving in the on-premises product.

Similarly, the Visual Studio integration is a proper git client - again, it's not git-tf. It uses the libgit2 and libgit2sharp projects to provide repository access to a local git repository, as well as network access to provide pushing and pulling to any git hosting service that speaks HTTP. (The SSH transport is not currently supported.) This means that you can push and pull to Bitbucket or GitHub, for example, you need not talk to Team Foundation Server.

like image 115
Edward Thomson Avatar answered Oct 15 '22 06:10

Edward Thomson