How to revert (Roll Back) a checkin in TFS 2010

前端 未结 7 1541
醉酒成梦
醉酒成梦 2020-12-04 09:43

Can anyone tell me how to revert (roll back) a checkin in TFS 2010?

7条回答
  •  清歌不尽
    2020-12-04 10:35

    Without using power tools or command line:

    1. ensure Tools->Options->Source Control->Visual Studio Team Foundation Server UNCHECK Get latest version of item on check out
    2. View the history of project folder in Source Control Explorer and right click on the changeset to roll back to and choose Get This Version
    3. Check out for edit on the project folder in the Source Control Explorer (this should keep your local version you just got from the history)
    4. Check in pending changes on the project folder in the Source Control Explorer
    5. if visual studio asks you to resolve conflicts, choose keep local and attempt check in of pending changes on the project folder in Source Control Explorer again

提交回复
热议问题