Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git clone on Mac with HTTPS not working

Tags:

git

macos

I use Git in Windows and Linux on a daily basis and I was just trying to get it going on my Mac but am having an issue doing a simple git clone. I used the installer from the Git website as well as the bash script which adds the environment variable in ~/.MacOSX

I say that because I'm not completely sure everything is setup correctly, I also have the ssh key added to my github account.

So heres the full 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 environment.plist 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>
like image 243
Justin Soliz Avatar asked May 31 '11 18:05

Justin Soliz


People also ask

Why is git clone not working?

If you have a problem cloning a repository, or using it once it has been created, check the following: Ensure that the user has gone through initial GitCentric login and has the correct username, email, and ssh. This should return a usage message that refers to the config-branch, config-repo, and ls-repo commands.

How do I clone a git repository on a Mac?

Cloning the RepositoryType in "Clone" and select "Github: Clone". Copy the "Clone with SSH" URL from the GitLab repository you would like to clone. Paste in the URL to clone first then modify the location to a folder that exists and that you will be able to access easily later.


1 Answers

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

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

like image 182
Justin Soliz Avatar answered Oct 07 '22 09:10

Justin Soliz