8

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)?

Nick
  • 447
  • 5
  • 15

2 Answers2

10

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.

BillBR
  • 146
  • 1
  • 5
0

No, It's not possible unshelve part of the Shelveset.

Just as you mentioned, you can check out the shelve changes to a new directory, then copy the needed files to overwrite the ones in your current workspace, then check in the changes.

You can also use the Shelveset Sidekick tool which allows one to easily view and save shelved files.

enter image description here

Andy Li-MSFT
  • 28,712
  • 2
  • 33
  • 55