Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete TFS branch without downloading it

I am trying to delete a branch that has not been downloaded into my workspace via following command.

tf delete /lock:checkout /recursive $/TfsServerName/TfsFolder/Branch

I get following error message:

No matching items found in $/TfsServerName/TfsFolder/Branch in your workspace.

Is there a way to delete a TFS branch without actually downloading it?

like image 546
Rest Wing Avatar asked Feb 14 '11 11:02

Rest Wing


People also ask

How do I delete a branch in TFS?

Right Click the Branch and click delete and then do a Check-in.

How do I permanently delete a branch?

Deleting a branch LOCALLY Delete a branch with git branch -d <branch> . The -d option will delete the branch only if it has already been pushed and merged with the remote branch. Use -D instead if you want to force the branch to be deleted, even if it hasn't been pushed or merged yet.


1 Answers

you can do a non-recurisve get of only the folder with the "tf get" command. I am not aware that you can delete it when you don't have a local copy of the folder.

like image 194
Ewald Hofman Avatar answered Sep 28 '22 03:09

Ewald Hofman