Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Partially Unshelve TFS Shelveset

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

like image 492
Nick Avatar asked Aug 01 '17 19:08

Nick


People also ask

What does Unshelve mean in TFS?

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

How do I Unshelve a file in TFS?

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.

How do you Unshelve a Shelveset in Visual Studio?

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.

What is the difference between changeset and Shelveset?

Unlike a changeset, a shelveset is a non-versioned entity.


1 Answers

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.

like image 72
BillBR Avatar answered Sep 28 '22 16:09

BillBR