How to clone git to a server?

How can a Git clone ignore a self-signed SSL certificate?

  • This is on an internal GitHub enterprise. $ git clone Page on server It returns this error: fatal: unable to access 'Page on server': SSL certificate problem: unable to get local issuer certificate

  • Answer:

    To avoid polluting your global configuration, you could also just do:     GIT_SSL_NO_VERIFY=true git clone /path/to/repo EDIT May 3rd, 2015 As said in the comments: Don't disable SSL globally with `--global http.sslverify false`. Doing so will make your git setup vulnerable to MITM attacks.

Franck Verrot at Quora Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.