什么是git cherry-pick的TFVC中的等效项 [英] What is the equivalent in TFVC of git cherry-pick

查看:121
本文介绍了什么是git cherry-pick的TFVC中的等效项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很抱歉,但是我是TFS新手用户,git cherry-pick的TFVC(团队基础版本控制)等效什么?

I'm sorry for my question but I'm TFS noob user, what is the equivalent in TFVC (Team Foundation Version Control) of git cherry-pick?

推荐答案

首先,为要选择的变更集创建补丁:

First, create a patch for the changeset that you want to cherry-pick:

tf diff /version:C1234 /format:unified > cherry.patch

(注意:从PowerShell重定向到文件时要小心.它要编写许多程序都很难处理的UTF-16文件.)

(Note: be careful about redirecting to a file from PowerShell. It wants to write UTF-16 files which many programs have a hard time coping with.)

然后使用补丁应用

patch -p0 < cherry.patch

这篇关于什么是git cherry-pick的TFVC中的等效项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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