开发者

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

开发者 https://www.devze.com 2023-02-09 22:27 出处:网络
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 mak

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 t开发者_如何学Pythonhis and what is the best approach to take. I am using Visual Studio 2010 which connects to TFS 2008.

Thanks a lot.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消