简体   繁体   English

使用Git在TFS Online中的Visual Studio中进行分支刷新

[英]Branching Refresh in Visual Studio in TFS Online using Git

I am using Visual Studio online as my source repository and have chosen git for source control. 我在线使用Visual Studio作为我的源代码库,并选择了git进行源代码控制。 I have created a new branch named as "Branch1" and published it in the server. 我创建了一个名为“Branch1”的新分支并将其发布到服务器中。

I want the fellow developer to get this branch in his visual studio and work with this. 我希望开发人员在他的视觉工作室中获得这个分支并使用它。 But the other developer is not getting this "Branch1" listed in his visual studio. 但是其他开发者并没有在他的视觉工作室中列出这个“Branch1”。 How can the other developer refresh the list of branches available in the server. 其他开发人员如何刷新服务器中可用的分支列表。

Thanks 谢谢

Make sure your fellow developer fetches commits from the team first. 确保您的开发人员首先从团队中获取提交

https://i-msdn.sec.s-msft.com/dynimg/IC698190.png

Then he/she can create a local branch tracking that new remote branch. 然后他/她可以创建一个跟踪该新远程分支的本地分支。
See " Visual Studio 2013 git, only Master branch listed " 请参阅“ Visual Studio 2013 git,仅列出主分支

http://i.stack.imgur.com/Dhz4k.png

从master分支迁移到Branch1需要至少1次提交才能在visual studio的team explorer菜单中访问。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM