Ali Akdurak
Ali Akdurak

Reputation: 4131

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.

Upvotes: 7

Views: 742

Answers (1)

SecretDeveloper
SecretDeveloper

Reputation: 3140

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.

Upvotes: 11

Related Questions