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 rollback all the other files I checked in during that checkin or just the file I am currently viewing? If it does rollback all files is there a way to rollback just the file selected?
Thanks
Ribbon Select Source Control > View History. Right-Click If you have the File List open, right-click the file you want to roll back and select Source Control > View History. Source Control Explorer With the Pending Changes pane open, right-click the file you want to roll back and select View History.
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.
In the current version, you find in the Explorer, in the left sidebar. Then Open Editors, and right click on the file you want to revert.
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...
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.
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