Reputation: 117
When we first created some team projects we choose Git for the Source Control. The teams want to switch to TFVC. TFS 2015 update 1 and above support both Git and TFVC in the same project.
My question is, we don't have anything in the Git Repository. I would like to delete it so that the end users don't even see it since we are not using it.
How do I delete the Git Repositories option. I don't want it showing up in the WEB UI or Visual Studio.
Upvotes: 0
Views: 406
Reputation: 51093
According to your description, seems you want to remove unused Git repos from your team project when they are no longer needed.
For multiple repos:
Select the settings icon in the web to bring up the project administration page and choose Version Control.
Select the Git repository to remove from the list shown and select the ... next to the name. Choose Delete Repository.
For single repo:
You cannot remove a repo if it is the only Git repo in the Project. If you need to delete the only Git repo in a Project, create a new Git repo first, then delete the repo.
As a workaround you could set the single git repo's permission Ready to Deny for contributors groups.
Upvotes: 1
Reputation: 59020
If you only have one Git repository, you can't delete it. That may have changed in later versions of TFS, but in TFS 2015, that was how it was.
You can set the repo's security so that no one can access it, which may hide it.
Upvotes: 1