Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Get Latest" only on a folder, not recursively

Is there a way that I can "Get Latest" on a folder/branch by itself, without recursing through everything? Our source is a couple of GB, and I just want to basically have the latest version of the branch itself (or maybe just all of the folders), but not any of the contents.

If you're wondering why... it's because you can't delete a branch until you have downloaded it from TFS. If the branch is greyed out, you cannot delete it. So I want to be able to get latest on a folder/branch without it recursing inside.

like image 829
qJake Avatar asked Jan 27 '12 21:01

qJake


1 Answers

You can't do it from within Visual Studio, but you can from the command line.

Open up a "visual studio command prompt" from the start menu and navigate to your local workspace e.g. cd c:\tfs\myteamproject\mybranch

then use the command "tf get $/myteamproject/mybranch/theFolderIWantToDelete"

This will only get that specific folder, you can then go back to VS and delete the folder and check it in.

like image 100
James Reed Avatar answered Nov 20 '22 19:11

James Reed