Here is a question covering trusting a self-signed certificate. This is the proper way to fix the issue assuming you are using a self-signed cert.
This question covers ignoring a certificate, however, depending on which method you use, this could result in ignoring all certificates, which would make communicating with your git server insecure, and is therefore a quick solution, but not a good solution. If you take this route, I would recommend at least using the per-repository setting (git config http.sslVerify false
) instead of applying it more broadly in order to minimize the severe negative impact of this method.