Rollback a single file in TFS

前端 未结 4 1518
隐瞒了意图╮
隐瞒了意图╮ 2021-02-06 20:07

If I view the history of a single file in source control I can right hand click a change-set in the list and choose \"rollback back entire change-set\".

Will this rollba

相关标签:
4条回答
  • 2021-02-06 20:32

    From now on, in visual studio 2015 atleast, you can just go to source control, right click a file and choose Rollback.. This will ask you what changeset you would like to rollback for this file and it will only rollback that file.

    0 讨论(0)
  • 2021-02-06 20:33

    Very simple workaround :) 1. rollback entire changeset 2. undo all file except file you actually want.

    0 讨论(0)
  • 2021-02-06 20:37

    As previously mentioned, rolling back the changeset rolls it back in its entirety.

    Installing Team Foundation Power Tools (which I think pretty much everyone should install) gives you another option: If you want to rollback a single file, you can right click a single file in the Source Control Explorer and select Rollback...

    0 讨论(0)
  • 2021-02-06 20:56

    Yes, rolling back the entire changeset will roll back all the changes in it.

    However, a Rollback is not instant, when you click that option the rollback will be perform a reverse merge and leave the changes in your workspace. So you can look at them in Pending Changes.

    In your case, just perform the Rollback and then undo everything except the file you actually want to Rollback.

    0 讨论(0)
提交回复
热议问题