views:

37

answers:

1

I was developing team project and suddenly realised that i've made so many changes, that i need create branch.

I've never used branching in TFS and when i saw "Branch\ "From Workspace version" i thought that's, what i need. But this option doesn't act as i supposed.

How can i create new branch, from my "LOCAL COPY of Project" and include all local changes"? The option that I mentioned above creates something like branch from...i don't know exacly from what, but i know for sure, that not from my local version with all changes. As i noticed, generated branch doesn't have files and project which i added.

+4  A: 

What I would do is:

  • Shelve your work
  • Branch from the appropriate source folder
  • Use TFS Power Tools to unshelve to a different location
  • Check in.

That way, you get a nice clean branch, and you get a record of the changes you have made.

Robaticus
The command for the unshelve would be something like this --> tfpt unshelve /migrate MyShelveset /source:$\project\trunk /target:$\project\branch
Richard Banks