如何在 TFS 2010 中撤消变更集回滚?
我不小心回滚了整个变更集。如何撤消该操作并恢复变更集?
I accidentally rolled back an entire changeset. How can I undo that operation, and restore the changeset?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果您在 TFS 中选择“回滚整个变更集”,它会更改本地文件,以便撤销在变更集中所做的更改。
由于这是本地更改,并且在您签入更改后才会生效,因此您可以通过在项目上使用“撤消挂起的更改”来“撤消”回滚。请注意,这也意味着任何其他未提交的更改也将丢失,因此请小心使用。
If you select "Rollback Entire Changeset" in TFS, it changes the local files so that the changes made in the changeset are reversed.
Since this is a local change and does not take effect until you check the changes in, you can "undo" the rollback by using "Undo pending changes" on your project. Note this will also mean any other uncommitted changes would also be lost, so use with care.
您始终可以“查看历史记录”并检索特定的变更集...
You can always "View History" and retrieve a particular Changeset...
获取最新版本并回滚早期回滚的更改集,现在它们会被签出,并在所需的修改后签入更改。
Get the Latest version and Rollback the earlier roll-backed change set and now they get checked out and now check in the changes after required modifications.
或者,您可以在 Visual Studio 命令窗口中使用以下命令:
tf 回滚 /changeset:changeset_number
Alternatively you can use the following command in visual studio command window:
tf rollback /changeset:changeset_number