Search code examples
tfsazure-devopstfvc

TFS Save Changes Private & Undo Pending Changes


I inherited a huge c# project, I am planning to do the following

  • Make alot of changes to project files (many files)

  • Save all of my changes to tfs privately,so I dont check-in my work and mess up teams work. Reason why I want to save is, so I can refer back to my changes.

  • After Saving Changes, I want to overwrite my files with the Latest Version from server. Get Latest wont work,,,since my changes are newer then the server version.

In a Nutshell, I want to change some files for testing, save them as a reference just for myself and then undo my pending changes and overwrite my files with latest version from server.

How can I do above steps using TFS. i am using Visual Studio 2012 if that helps.


Solution

  • You can either create a "private" branch or use a shelveset. A branch would be more reliable (shelveset could be deleted without leaving a history).