How can I remove/fix a ghost workspace

前端 未结 3 1336
孤街浪徒
孤街浪徒 2021-02-14 03:19

Somehow I have ended up with a \"ghost\" workspace. It doesn\'t show up in Visual Studio under Manage Workspaces. When I connect to VS Team Services and open source control expl

3条回答
  •  不知归路
    2021-02-14 04:06

    You can use tf workspaces command to get detailed XML info for all workspaces, including owner uniqe id and owner alias user names:

    tf workspaces /owner:* /format:xml
    

    Sample output:

    
      
      
        
      
      2019-01-01T01:02:03.456+00:00
      
        SERVER\Name
        Name
        Some Name
      
    
    

    You can then try some of the OwnerAliases as owner to delete workspace or directly use owneruniq:

    tf workspace /delete wrkspacename;12345678-90ab-cdef-1234-567890abcdef
    

提交回复
热议问题