Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you remove Microsoft Git Provider?

I'm having an issue with VS2013 which I had connected to my visual studio online account, and was using TFS source control just fine up until I installed Git. Now it seems that "Microsoft Git Provider" keeps overriding my settings for source control even after I manually change it back to TFS, or none then TFS. So now I just want to remove it all together. I tried uninstalling everything Git related, but it still remains. I even uninstalled VS2013 completely, then reinstalled, and it's still there.

like image 828
Kevin Heidt Avatar asked Mar 17 '14 16:03

Kevin Heidt


People also ask

How do I change the git settings in Visual Studio?

To configure Git settings in Visual Studio, choose Settings from the top-level Git menu. Choose Git Global Settings or Git Repository Settings to view and configure global-level or repository-level settings. You can configure several common Git settings, as described in the following sections of this article.

How to reset Git in Visual Studio code?

The --hard part of the command tells Git to reset the files to the state of the previous commit and discard any staged changes. To do the same in Visual Studio, right-click the commit that you want to reset your branch to, and then select Reset > Delete Changes (--hard).

How to revert to previous commit Visual Studio 2019?

To do the same in Visual Studio, right-click the commit you want to revert and then select Revert. After you confirm your action and the operation is complete, Visual Studio displays a success message and a new commit appears in the Outgoing section.

How do I delete a project from Source Control in Visual Studio?

To remove files from source control:choose Source Control > Remove or press Ctrl+R, R. The dialog will list the files that can be removed. In that dialog, you can deselect any files you don't want to remove. Click Remove.


2 Answers

I used procmon to see that this dll was being accessed by visual studio when switching to the Microsoft Git Provider.

"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Microsoft.TeamFoundation.Git.Provider.dll"

I edited the permissions for the dll so that the user "Everyone" had no permissions for it, and VisualStudio stopped switching back To "Microsoft Git Provider" every time at startup. Doing this means even if you try to select "Microsoft Git Provider" for the current source control plugin it does nothing and instead just shows your previous selection.

like image 76
Seth Avatar answered Sep 27 '22 18:09

Seth


Update 2:

Here's an extension that disables MS Git provider on opening a git solution: http://visualstudiogallery.msdn.microsoft.com/146b404a-3c91-46ff-932a-fb0f8b826f94

The solution doesn't seem to work anymore (as also mentioned in the blog post):

For the ones running into this article and wanting to disable the provider for other reasons (performance or files being read-only for refactoring by Resharper), I did run into this registry hack to permanently remove the MS GIT source control provider:

https://blog.rendle.io/disable-the-git-source-control-add-in-in-vs2013-permanently/

tl;dr:

  • close VS2013 then delete this whole key (or the one with a GitSCCProvider value under it):

  • HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0_Config\SourceControlProviders\{11b8e6d7-c08b-4385-b321-321078cdd1f8}

  • Search the registry for the same GUID 11b8e6d7-c08b-4385-b321-321078cdd1f8 and remove those values or entries too.

Edit:

if you need to use a TFS GIT repository and related information from Team Explorer (like builds, etc), don't delete the GIT SCC provider because that will break too.

like image 22
Wiebe Tijsma Avatar answered Sep 27 '22 18:09

Wiebe Tijsma