Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the best way to deal with dead branches in TFS?

Tags:

branch

tfs

In TFS, what is the best way to mark dead branches? Do you move your branch? Branch release it? Delete it? Rename it? What problems have you run into for each of these approaches? What are the good points?

It would be nice if there were a simple interface solution that would simply mark or filter the current view if a particular branch was tagged as dead. That way you wouldn't have to do something permanent like rename or delete a branch . . .

like image 435
TheEmirOfGroofunkistan Avatar asked Mar 16 '09 15:03

TheEmirOfGroofunkistan


People also ask

How do you handle branches in TFS?

With TFS, there are several ways that you can handle releases. You can tag/label each release branch or bug fix. But the relationship between release branches and the release is not always clear. Teams need to create a naming scheme and define a TFS branching strategy to help document the flow of change.

Can we delete branch in TFS?

Hi, Right Click the Branch and click delete and then do a Check-in.

How do I create a branch from an existing branch in TFS?

In Source Control Explorer, right-click the folder or file that you want to branch, point to Branching and Merging, and then click Branch. The Branch dialog box appears. In the Target box, modify the location and name for the new branch.


1 Answers

Deletion isn't permanent, so I'd go with this option.

You can then opt whether or not to view deleted items in SCE (Tools -> Options -> Source Control -> Visual Studio Team Foundation Server -> Show deleted items in the Source Control Explorer).

And you can choose to undelete the branches if necessary.

like image 121
Ian Nelson Avatar answered Sep 28 '22 08:09

Ian Nelson