Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way in VS 2010 with TFS 2008 to check in your changes as a new branch?

My question is rather simple I have made many changes in our project which I don't want to merge with the main branch right away. I did not take a branch at the start of these changes while I was making them. So now I tried to find a way to take branch to check in my code but there does not seem to be a solution. How can I do this and what is the best approach to take. I am using Visual Studio 2010 which connects to TFS 2008.

Thanks a lot.

like image 304
Ali Akdurak Avatar asked Feb 10 '11 11:02

Ali Akdurak


1 Answers

You could create a new branch now and then change the paths on your edited files to the new branch before checking them in.

  1. Create a new branch.
  2. Shelve your pending changes.
  3. Use the power tools to move the shelved changes from the current branch to your new branch using the following command.

    tfpt unshelve [MY_SHELVESET_NAME] /migrate /source:CURRENT_BRANCH_PATH /target:NEW_BRANCH_PATH

Take a look at the powertools help to get further details.

like image 127
SecretDeveloper Avatar answered Nov 01 '22 08:11

SecretDeveloper