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>
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With