A little while back, I shelved a bunch of changes from several unrelated features. Now, I want to grab just a few of those files. Is there a way to selectively unshelve files or directories (without checking out to a second place, unshelving there and copying things over)?
Unshelving is how you restore the shelveset to your machine so you can keep working on it. It doesn't change the shelveset on the server (to do that you need to shelve things again and use the same shelveset name).
Go to File -> Source Control -> Unshelve Pending Changes…. You can then find shelvesets by username. Clicking Details on a shelvset will show you information about each file in that shelveset. You can also compare files from this window.
To unshelve the shelveset from someone else you go to Team Explorer -> Pending Changes. You then select the Action link next to Shelve and select Find Shelvesets. By default, you'll now see the shelvesets that are found for your user account.
Unlike a changeset, a shelveset is a non-versioned entity.
You can do this directly from Visual Studio 2015. After you browse to the shelvset, you can select the files you DON'T want to unshelve and then click Exclude. Only the files remaining in the Include section will be unshelved when you click the Unshelve button.
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