分支当前更改然后在TFS中“回滚”

时间:2021-05-08 23:45:17

I have a specific changeset that I want to "rollback" my Development branch to, but I want to take all of the the changes after that specific changeset and put them in to a new branch. Is this possible in TFS? If so, how could I do such a thing?

我有一个特定的变更集,我想“回滚”我的开发分支,但我想在特定变更集之后进行所有更改并将它们放入新分支。这可能在TFS中吗?如果是这样,我怎么能做这样的事情?

Thanks, Dave

3 个解决方案

#1


2  

Well.. The easiest way is to do exactly what you just said.

嗯..最简单的方法就是完全按照你刚才说的做。

Branch the existing code into a new spot. Then get the changeset you want, checkout the project, and check the changeset back in.

将现有代码分支到新位置。然后获取所需的变更集,签出项目,然后重新检查变更集。

#2


1  

If you have the Team Foundation Power Tools installed, you can use the command tfpt rollback to create a changeset in your client that will take care of the rollback.

如果安装了Team Foundation Power Tools,则可以使用命令tfpt rollback在客户端中创建一个用于处理回滚的变更集。

#3


0  

I ended up branching at the changeset I wanted, naming it Development-stable, then renamed Development to Development-experimental and then renamed Development-stable to Development.

我最终选择了我想要的变更集,将其命名为Development-stable,然后将Development更名为Development-experimental,然后将Development-stable重命名为Development。

#1


2  

Well.. The easiest way is to do exactly what you just said.

嗯..最简单的方法就是完全按照你刚才说的做。

Branch the existing code into a new spot. Then get the changeset you want, checkout the project, and check the changeset back in.

将现有代码分支到新位置。然后获取所需的变更集,签出项目,然后重新检查变更集。

#2


1  

If you have the Team Foundation Power Tools installed, you can use the command tfpt rollback to create a changeset in your client that will take care of the rollback.

如果安装了Team Foundation Power Tools,则可以使用命令tfpt rollback在客户端中创建一个用于处理回滚的变更集。

#3


0  

I ended up branching at the changeset I wanted, naming it Development-stable, then renamed Development to Development-experimental and then renamed Development-stable to Development.

我最终选择了我想要的变更集,将其命名为Development-stable,然后将Development更名为Development-experimental,然后将Development-stable重命名为Development。