How to skip SSL certificate verification during git clone


When running git clone, you see an error message like

Cloning into 'MyProject'...
fatal: unable to access '': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none


The quick solution is to prepend


to the git clone command, example:


Note that skipping SSL verification is a security risk, so the correct method of fixing this issue is appropriately updating the CA certificates (something like sudo apt install ca-certificates) but this is sometimes not feasibel since not any outdated computer can be updated easily.