如何在TFS上创建分支并将未完成的更改附加到新分支 [英] How to create branch on TFS with attaching pending changes to new branch

查看:95
本文介绍了如何在TFS上创建分支并将未完成的更改附加到新分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在main分支上工作,并且对文件做了很多更改.我没有检查这些更改.如何从main创建子分支,但是如何将附加到main分支的所有本地挂起的更改都附加到新创建的子分支.

I was working on main branch and I have done a lot of changes to files. I did not check in those changes. How to create child branch from main, but all local pending changes which are attached to main branch, changes to be attached to newly created child branch.

所以基本上:如何通过将父分支的所有未决更改附加到子分支来创建子分支?

So basically: How to create child branch with attaching all pending changes of parent branch to child branch?

推荐答案

您可以搁置更改,然后使用TFS Power Tools将其搁置到另一个分支中.

You can shelve your changes, then use the TFS Power Tools to unshelve them into a different branch.

这是Power Tools的特定功能(tfpt不支持/migrate).它将重写服务器路径以将更改迁移到另一个分支.有关更多信息,请参见此博客文章: http://geekswithblogs.net/TarunArora/archive/2011/06/06/unshelve-shelveset-created-from-one-branch-to-another.aspx

This is a specific feature of the Power Tools (tfpt unshelve /migrate). It will rewrite server paths to migrate the changes into another branch. See this blog post for more info: http://geekswithblogs.net/TarunArora/archive/2011/06/06/unshelve-shelveset-created-from-one-branch-to-another.aspx

这篇关于如何在TFS上创建分支并将未完成的更改附加到新分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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