Git clone on mac with https not working

I use Git on Windows and Linux on a daily basis, and I just tried to run it on my Mac, but I have a problem with a simple git clone . I used the installer from the Git website as well as a bash script that adds an environment variable to ~/.MacOSX

I say that since I'm not quite sure everything is set up correctly, I also have an ssh key added to my github account.

So all the output from the terminal

 myComp:Sites me$ git clone https://github.com/me/some_project.git Cloning into some_project... error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/me/some_project.git/info/refs fatal: HTTP request failed myComp:Sites me$ 

Here is what the .plist environment looks like:

 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>PATH</key> <string>/usr/local/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/X11/bin</string> </dict> </plist> 
+6
source share
2 answers

This is what worked for me, and it may or may not be the best solution, but certainly the easiest.

git config --global --add http.sslVerify false

+13
source

I researched your problem a bit and found someone who had a similar problem. Apparently, the problem was that they had their own environment variable in their path. Are you sure git is not installed on this computer before? Could you take a look at the ~ / .MacOSX file and see if it contains anything suspicious?

0
source

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


All Articles