Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pull branch from Team Foundation Service to Visual Studio 2012

I'm working on a project with 2 others, and we're using Visual Studio 2012 with Git and Team Foundation Service.

I'm able to clone the repository from TFS to my machine, however I can't get a separate development branch to pull as well, while I'm able to see it on the TFS website.

Does anyone know how to do this?

like image 902
jeerome48 Avatar asked May 15 '13 17:05

jeerome48


1 Answers

Found it, apparently it's a bug in Visual Studio Tools for Git:

To summarize this issue: Visual studio tools for git does not automatically show new published branches in coworker machines. With version 8.5.1. you have to remove the tagopt = --tags option from .git/config, then go to command line and do a git fetch and then a git checkout -b <newBranchName> origin/<newBranchName>.

(Source: http://visualstudiogallery.msdn.microsoft.com/abafc7d6-dcaa-40f4-8a5e-d6724bdb980c/view/Discussions/2

Title : "Can't see remote branches"; written April 25, 2013 by HectorCruz)

like image 183
jeerome48 Avatar answered Nov 15 '22 19:11

jeerome48