Tips and Tricks in a world of Mix

 

If you’ve preformed a lot of changes, but for now you want to reverse the changes without loosing them , one of your choises is to branch it.

The trouble is that the branch won’t take your present Local Version.

The solution is :

1)Download the TFTP.Exe install and restart the computer.

2)Shelve your work

image

3)Give meaningful name to the Shelveset – Such as PostSharp Insertion in my case…

image

4)Branch to some other folder

image

5)From command line go to your original folder

6)From your original folder in cmd activate this pattern :

tfpt unshelve /migrate MyShelveset "/source:$/project/trunk" "/target:$/project/branch"

You can see the full paths in VS itself :

image

 

7)You”ll get Shelveset window

image

8)Unshelve (it will go to "/target:$/project/branch")

* it’s important to be able to resolve all conflicts .

9)Check the code in the Branched folder – it should keep all your checked out items and new code inside the files .

9)Go to your original folder in tfs and Undo Pending Changes.

10)We’ve created a branched version with all your changes and you have the original version in the original folder you’ve started from .

11)Now you can wait for some issue to be resolved , while you go on working on the current version with your team .

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Tag Cloud

%d bloggers like this: