TFS : Can a shelveset be restored to another location?

拟墨画扇 提交于 2019-12-10 14:37:49

问题


I have the following scenario:

A user shelves some changes. Time goes by and a new branch of the product is created. Later, it is determined that the shelveset contains code, that we will need in the new branch.

By default; Visual Studio can only restore the shelveset changes to the location where they were shelved from. Is it possible to restore my shelveset in the new branch ? I do not want the code to be checked into the original branch, as it would break stuff.


回答1:


It is possible with the TFS Power Tools.

See: Can I unshelve to a different branch in tfs 2008?

Note the "migrate" option.




回答2:


Here is the overview about this command Unshelve command basics

From the article, an example:

tfpt unshelve "demo_shelveset";rkandhal /migrate /source:"$/Code-branch-1" /target:"$Code-branch-2/"


来源:https://stackoverflow.com/questions/633891/tfs-can-a-shelveset-be-restored-to-another-location

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!