Masriyah
Masriyah

Reputation: 2505

Deleting a branch folder in TFS

So i just branched from my main project only to realize that i only needed to branch from one project within the main so now in my branch i have all other projects in which i don't need could i safely delete them from the branch?
OR
should i delete the whole branch folder using tf destroy and create a new branch from the main project which i only need. I tried deleting the whole branch folder but it is not allowing me to delete but i could delete some folders within the branch.

Upvotes: 5

Views: 23917

Answers (2)

Gabe
Gabe

Reputation: 91

I just did the exact same thing you described. My solution was to convert the branch to a normal folder. Then you can delete the folder and check in the change.

Upvotes: 3

Chris
Chris

Reputation: 2895

It depends on how tightly coupled this code will be to the main project & how many dependencies it has on your other projects. If it's entirely isolated & will not have any dependencies you're better off destroying the errant branch using 'tf destroy' & just branching the project to have a cleaner source tree.

Otherwise I'd actually recommend removing only the completely unrelated projects. Any framework projects you reference in the branched project should remain part of the branch as well just in case you need to change them, it can be done without impacting the main branch.

Upvotes: 2

Related Questions