Configure Visual Studio to use the installed system Git.exe

Visual Studio 2017 comes with its own version of Git. Unfortunately, it does not have SSH support, and it does not contain a root certificate for the issuer for the SSL certificate protecting our repositories. So, whenever we try to clone, pull or push, we get this error:

Error while cloning a remote repository: Git failed with a fatal error. fatal: cannot access "https: // ******** /": problem with SSL certificate: cannot obtain local issuer certificate

Visual Studio 2017 seems to come with its own version of Git. The latest version of Git, 2.12.2, fixes the problem above by adding support for searching Windows certificate stores when verifying SSL certificates. Is there a way to configure Visual Studio to use the global version of the Git version? Bonus points if the solution works in all versions of Visual Studio.

+6
source share
2 answers

I did not find the answer to your direct question in bold , but I am having similar problems with the SSL certificate, which I solved using the following link:

Git in VS2017 with self-signed SSL

: certs, Visual Studio. :

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\ssl\certs

, /2017 .

: ca-bundle.crt base64 ( ) .

, .

, !

+1

Visual Studio Git , , Visual Studio :

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\ Git\

32- , . IDE , Visual Studio , .

+1

Source: https://habr.com/ru/post/1017118/


All Articles