开发者

How can I undo a changeset rollback in TFS 2010?

开发者 https://www.devze.com 2023-04-01 17:29 出处:网络
I accidentally rolled back an entire changeset.How can I undo that operation, and restore开发者_如何转开发 the changeset?If you select \"Rollback Entire Changeset\" in TFS, it changes the local files

I accidentally rolled back an entire changeset. How can I undo that operation, and restore开发者_如何转开发 the changeset?


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.


Alternatively you can use the following command in visual studio command window: tf rollback /changeset:changeset_number

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号