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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With