I accidentally rolled back an entire changeset. How can I undo that operation, and restore the changeset?
To roll back a changeset from the History windowIn the History window, select two or more consecutive versions, open their shortcut menu, and choose Rollback.
Rollback entire changeset will give you a set of Pending Changes that when checked in will "undo" what was done in changeset 601. The result is that you will have 3 changesets: 600, 601, 602. And the resulting state will be the same as after 600.
Rollback reference (TFS 2010)right click file in Visual Studio and Source Control/View History then select last changeset, right click and click Rollback After rollback done, you should check in again.
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...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With