Visual Studio Team Services: delete repository

2019-06-15 16:23发布

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.

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.

4条回答
聊天终结者
2楼-- · 2019-06-15 16:33

In my case the solution from the comment by Pascal Berger worked: I've created a second, empty repository, and after I had two repositories the "Delete" option become visible when right-clicking any repository.

查看更多
看我几分像从前
3楼-- · 2019-06-15 16:33

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

Replace YourTenant and YourTeamProject with the appropriate values.

If you don't see the link in the dropdown or get an error message you most probably don't have enough permissions.

查看更多
Juvenile、少年°
4楼-- · 2019-06-15 16:48

Delete the Team Project and the remaining repo will be deleted also. That way you're not left with an empty Team project

查看更多
Viruses.
5楼-- · 2019-06-15 16:56

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

查看更多
登录 后发表回答