
Shelve Folders and Files in Team Foundation Source Control
The following procedure, describes a shelve action which lets you set aside the pending changes in your workspace temporarily. A shelve action can also be used to share your code with another user for code review.
Perform a Get Latest operation to synchronize your workspace with the latest server version, and then build your application to make sure that it compiles before shelving or checking in. Doing this lets you incorporate changes to source files that have been made outside your workspace. For more information, see How to: Update the Source in your Workspace.
The following procedure assumes that you have a solution with pending changes.
To shelve folders and files in source control
-
In Solution Explorer, right-click, and select Shelve Pending Changes.
Note |
|---|
| The shelve option is also available in Source Control Explorer. |
-
In the Shelve - Source Files dialog box, type shelvetest in the Shelveset name box.
-
In the Comment box, type Testing my shelveset and then click Shelve.
The files and folders are copied to the source control server and are available for other team members to unshelve. For more information, see How to: Shelve and Unshelve Pending Changes.