Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create new root folders in a Team Project source control?

I'd like to recreate a folder hierarchy like in this example (from TFS Branching Guide Main 2010 v1): enter image description here

The problem is I cannot understand how to create additional root-level folders, like those Development and Release in the picture above, to put new child branches into.
The New Folder command option becomes available only at levels beneath root-level branches.

How to create new root folders in a Team Project source control at the Main branch level?

like image 668
rem Avatar asked Oct 22 '11 19:10

rem


People also ask

How do I create a new folder in source control?

On the Source Control Explorer tab, in the Folders pane, select the folder that contains the item or items you want to add. Click the Add Items to Folder button. In the Add to Source Control dialog box, select the folder or items you want to add, and then click Next.

How do I create a directory structure in TFS?

You could write a short script to do it. Just mkdir all the directories you need and then run tf add /r.

How do I create a root folder in Visual Studio code?

The File > Add Folder to Workspace command brings up an Open Folder dialog to select the new folder. Once a root folder is added, the Explorer will show the new folder as a root in the File Explorer. You can right-click on any of the root folders and use the context menu to add or remove folders.


Video Answer


2 Answers

Here is what I did.

  1. Connect to the desired collection in Team Explorer.
  2. Click the down arrow at the end of the "Connect" row.
  3. From the drop-down menu provided select "Projects and My Teams".
  4. Select "New Team Project".

And now you have a new "Directory" under the collection root.

like image 196
Paul Avatar answered Nov 15 '22 20:11

Paul


Make sure that your workspace maps at the Team Project level ("StandardBranchPlan" in the picture). I just tried this, and found that "New Folder" does not appear if I have the wrong workspace selected, but once I select a workspace that maps the folder under which I want to create a new folder, "New Folder" became enabled.

like image 28
John Saunders Avatar answered Nov 15 '22 21:11

John Saunders