"Get recent" only in a folder, not recursively

Is there a way that I can “Get Last” in a folder / branch by itself without recursing through everything? Our source is a couple of GBs, and I just want to have the latest version of the branch itself (or maybe just all the folders), but not any content.

If you're wondering why ... this is because you cannot delete a branch until you download it from TFS. If a branch is grayed out, it cannot be deleted. Therefore, I want to be able to get the latest data in a folder / branch without recursing it internally.

+4
source share
1 answer

You cannot do this from Visual Studio, but you can from the command line .

Open the “visual studio command line” in the “Start” menu and go to the local workspace, for example. cd c: \ tfs \ myteamproject \ mybranch

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

This will only lead to that particular folder, then you can go back to VS and delete the folder and check it.

+8
source

Source: https://habr.com/ru/post/1393437/


All Articles