This is good, I think that it would be best to restore files and folders in the main branch. To do this, go to "Tools", "Options". Expand "Source Control", select "Visual Studio Team Foundation Server" and check the box "Show deleted items in the source explorer"

"undelete", .
, dev , , TFS .
Visual Studio 2010
. cd c:\tfs\MyLocalWorkspace
"tf"
tf merge $/TeamProject/Dev $/TeamProject/Main /recursive /force
TFS , , . , , "undelete" , " ".