Tuesday 14 June 2011

TFS: Check in changes to another branch

Sometimes you start working on some changes just to later realize that you have to interrupt your current work for other things. Then you all say: "That's what shelving is for!" then I say "yes, but sometimes you feel it would be better to make a branch with those changes instead. That works. Just create a branch (from a label or whatever) then shelve your pending changes and then unshelve your changes to that branch with TFS Power Tools:

C:\TFS>tfpt unshelve [shelve name] /migrate /target:$/Some/Path/To/Name-branch-NewFeatures /source:$/Some/Path/To/Name

No comments:

Post a Comment