Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Team Foundation Server 2010: Can I delete a branch, but save its history?

Tags:

branch

history

In Team Foundation Server 2010, I have created a source control branch for a major project that I want to be temporary. After the project is closed, I'd like to tie off the temporary branch, merge it into my Main branch, and then delete it. I want to delete it simply so I don't have a temporary branch hanging around for all time. BUT, I don't want to lose the check-in history from this branch.

So, my question is can I delete a branch that has been merged into other branches without deleting that branch's history as well?

like image 733
campbelt Avatar asked Oct 19 '11 17:10

campbelt


1 Answers

Deleted branches are basically hidden, not really deleted. This means they don't show up in Source Control Explorer (unless you have the show deleted files option turned on), but the history for the branch should still be available via the annotate tool and when viewing history on a file in any branch you merged the branch back into.

like image 52
Betty Avatar answered Nov 20 '22 05:11

Betty