Team Foundation Server 在分支之间切换 [英] Team Foundation Server switch between branches

查看:30
本文介绍了Team Foundation Server 在分支之间切换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以在 TFS 中的分支之间切换吗

Can we switch between branches in TFS

我想要的是我下载了一个工作副本,现在我想在不下载所有内容的情况下切换到不同的分支,因为对于大型项目,由于开发人员花费大量时间下载,因此需要花费很多时间

what i want is i downloaded a working copy and now I want to switch to different branch without downloading everything, because for large projects it will take lot of time since developers spend lot of time downloading

是否有可能,如果没有任何解决方法??

Is it possible, if not any workaround ??

推荐答案

您可以通过更改工作区映射并使用 /remap 从命令行客户端切换分支(仅下载差异)get 命令的标志:

You can switch branches from the command-line client (only downloading the differences) by changing your workspace mappings and using the /remap flag to the get command:

tf workfold /map $/Branch1 C:Work
tf get C:Work /version:T /recursive
tf workfold /unmap $/Branch1
tf workfold /map $/Branch2 C:Work
tf get C:Work /remap /version:T /recursive

这篇关于Team Foundation Server 在分支之间切换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆