I'm optimistic that this solution will fix the problem for good, as it appears to work by getting the installed Git and Visual Studio's Git completely in sync. Until 15.1, removing Visual Studio's version of Git fixed the problem, but 15.1 no longer falls back to the installed Git, so removing the Git folder produces a different error. I think the problem is that when I originally installed Visual Studio, it was using a later version of Git and that caused conflicts with the installed Git, even after updating the installed Git.
Run the Visual Studio 2017 installer again and modify the install to add Git For Windows again.
For more information about how to download Microsoft support files, see how to obtain Microsoft support files from online services. Download the latest version of Git and install it. Download the Visual Studio 2015 update package now.Release Date: OctoNote This is a client-side fix.Run the Visual Studio 2017 installer and modify the install to remove Git For Windows.Uninstall all versions of Git via Control Panel / Uninstall a program.In the Visual Studio Installer, look for the installation of Visual Studio that you want to repair. Starting with Preview 2, we’re focusing on delivering new capabilities on the themes of personal and team productivity, modern. We’re excited to announce the second preview release of Visual Studio 2022 Preview 1 was the first-ever 64-bit Visual Studio, delivering improved scalability. From the Start menu in Windows, search for 'installer', and then. Visual Studio 2022 Preview 2 is out July 14th, 2021. Delete this folder (backing it up in case you need to restore it):Ĭ:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git How to repair Find the Visual Studio Installer on your computer.Fortunately, Toby figured it out and posted the answer at Stack Overflow. It fails and this error shows up in the output window:Įrror encountered while pushing to the remote repository: Git failed with a fatal error.Īs of the latest 15.1 update to Visual Studio 2017, the solution I posted previously no longer works. The problem manifests itself when you try to push changes to a remote Git repository. I documented this in my post on troubleshooting the Visual Studio 2017 upgrade. Until 15.1 (26403.0), the solution was to delete Visual Studio's version of Git and let it pick up the version installed in Windows.
Every update I've applied to Visual Studio 2017 has broken Git again.