Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shelve Pending Changes in Team Foundation server

Tags:

tfs

codeplex

I am new to Team Foundation Server, so i was wondering what does "Shelve Pending Changes" does in Team foundation server. I am using TFS of project on Codeplex.

like image 331
Shekhar_Pro Avatar asked Dec 18 '10 03:12

Shekhar_Pro


People also ask

What is shelve pending changes in TFS?

Shelving is temporarily storing pending changes you have not committed yet. This is useful, for example, if you need to switch to another task, and you want to set your changes aside to work on them later.

How do I get rid of pending changes in TFS?

Right-click on the file in the Pending Changes List, choose Undo. believe it or not I actually had this same exact problem. I also didn't have the files. I right-clicked "view pending changes" on the solution and it pulled up all of the pending changes to my deleted files.

How do I see pending changes in TFS?

In the team explorer open up the source control tab, then right click on the route folder and select Check in Pending Changes. This will check in all the files over all the solutions/projects that you have underneath the root. Repeat the process for any other team collections you have used.

What is code shelving?

Shelving is a feature that is available through the use of Team Foundation Server (TFS) from Microsoft, a tool for source code management. This feature allows us to create what is known as a “shelveset,” which will essentially hold our local changes in the repository without committing them to the shared codebase.


1 Answers

Shelve Pending Changes stores your code changes on the server but doesn't commit them to the branch. Here are some reasons I've used it:

  1. To save changes but undo locally when I'm not ready to commit changes but I need to make an emergency bug fix on the same branch.
  2. To store code for code reviews prior to committing. Other people can check out or view your shelved changes.
  3. To store changes that are ready for committing when the changes aren't approved yet.

One thing to know about shelving changes: When you unshelve, you get the file as-is. If someone else has modified the file after your shelve, no merge happens. So I don't recommend shelving changes long-term.

like image 140
Joel Rondeau Avatar answered Sep 20 '22 19:09

Joel Rondeau