Essayez:
git config http.sslVerify false
Ajouter l' --global
drapeau si vous voulez le mettre à false pour chaque dépôt sur votre Mac. À partir de la page de man de git config
:
http.sslVerify
Whether to verify the SSL certificate when fetching or pushing over HTTPS.
Can be overridden by the GIT_SSL_NO_VERIFY environment variable.
Quelques autres SSL options de configuration:
http.sslCert
File containing the SSL certificate when fetching or pushing over HTTPS.
Can be overridden by the GIT_SSL_CERT environment variable.
http.sslKey
File containing the SSL private key when fetching or pushing over HTTPS.
Can be overridden by the GIT_SSL_KEY environment variable.
http.sslCertPasswordProtected
Enable git's password prompt for the SSL certificate. Otherwise OpenSSL will
prompt the user, possibly many times, if the certificate or private key is encrypted.
Can be overridden by the GIT_SSL_CERT_PASSWORD_PROTECTED environment variable.
http.sslCAInfo
File containing the certificates to verify the peer with when fetching or pushing
over HTTPS. Can be overridden by the GIT_SSL_CAINFO environment variable.
http.sslCAPath
Path containing files with the CA certificates to verify the peer with when
fetching or pushing over HTTPS.
Can be overridden by the GIT_SSL_CAPATH environment variable.
Par coïncidence, vous pouvez remplacer n'importe quel variable de config en passant -c name=value
de git
, de sorte que cela fonctionne:
git -c http.sslVerify=false clone https://domain.com/path/to/git
Bien que pour un arrêt temporaire des solutions, je préfère la syntaxe dans le Flux de la réponse.