git Visual Studio Team Services:删除存储库
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34946400/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Visual Studio Team Services: delete repository
提问by Master_T
In Visual Studio Team Services, I mistakenly added a Git repository to an existing project which was under TFVC, so now the project has two repositories.
在 Visual Studio Team Services 中,我错误地向 TFVC 下的现有项目添加了一个 Git 存储库,因此现在该项目有两个存储库。
The problem is, I can't find any option to remove this repository from the project. The only option I find is to delete the entire project (obviously not what I want to do).
问题是,我找不到从项目中删除此存储库的任何选项。我找到的唯一选择是删除整个项目(显然不是我想要做的)。
Searching online yields no useful results, as all the articles appear to be about deleting a project, can't find anything about removing a repository from a project.
在线搜索没有任何有用的结果,因为所有文章似乎都是关于删除项目的,找不到关于从项目中删除存储库的任何内容。
回答by BartoszKP
In my case the solution from the commentby Pascal Bergerworked: I've created a second, empty repository, and after I had two repositories the "Delete" option become visible when right-clicking any repository.
在我的情况下,Pascal Berger评论中的解决方案起作用了:我创建了第二个空存储库,在我有两个存储库后,右键单击任何存储库时“删除”选项变得可见。
回答by Eddie Chen - MSFT
Delete Git Repositories only available when you have multiple Git repos in one Git-based project. So there isn't any way to delete the Git repo in your case. You can submit a feature request on Microsoft User Voice: http://visualstudio.uservoice.com/forums/330519-team-services
只有在一个基于 Git 的项目中有多个 Git 存储库时,删除 Git 存储库才可用。因此,在您的情况下,没有任何方法可以删除 Git 存储库。您可以在 Microsoft 用户语音上提交功能请求:http: //visualstudio.uservoice.com/forums/330519-team-services
回答by Pascal Berger
In the Code hub on the top left there's a drop down to select between different repositories. At the bottom of this dropdown there's a 'Manage repositories' link.
在左上角的代码中心有一个下拉菜单,可以在不同的存储库之间进行选择。在此下拉列表的底部有一个“管理存储库”链接。
In the version control administration you can right-click the repository and choose 'Delete repository'.
在版本控制管理中,您可以右键单击存储库并选择“删除存储库”。
Direct link is:
https://YourTenant.visualstudio.com/DefaultCollection/YourTeamProject/_admin/_versioncontrol
直接链接是:
https://YourTenant.visualstudio.com/DefaultCollection/YourTeamProject/_admin/_versioncontrol
Replace YourTenant
and YourTeamProject
with the appropriate values.
用适当的值替换YourTenant
和YourTeamProject
。
If you don't see the link in the dropdown or get an error message you most probably don't have enough permissions.
如果您没有在下拉列表中看到链接或收到错误消息,您很可能没有足够的权限。
回答by dam0
Delete the Team Project and the remaining repo will be deleted also. That way you're not left with an empty Team project
删除团队项目,剩余的存储库也将被删除。这样你就不会留下一个空的团队项目