Using visual studio 2012 and TFS 2012, I would like to rollback a changeset to the prior one.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
In TFS 2012,
- View the history of the thing you want to rollback.
- Select the changeset you want to roll back.
- Right click on the changset and choose "Rollback".
- Check that the pending changes are correct (the rollback command will revert the entire changeset not just the file you selected)
- Check in.
In TFS 2010, you can call the tf rollback
command from a visual studio command prompt, or you can install the TFS power tools and use the same process as above
回答2:
In TFS / Visual Studio 2012, you have a few options.
Rollback to a specific version
In Source Control Explorer:
- Right Click the branch you wish to roll back
- Click Rollback...
- Choose Rollback to a specific version
- Enter the changeset number you wish to roll back to.
Rollback a single changeset (you can do this through the dialog loaded above too)
- Right click the changeset you wish to rollback
- Choose Rollback entire changset
Checkin the rollback.
回答3:
I have never worked with TFS 2012 but this works in 2010
Get specific version and pick the version you want to roll-back to and then check in that code again.