Sometimes I use Git over HTTPS on a private intranet, and there will be times where the Git client complains about a self-signed certificate. However, when running Git commands, this is fairly easy to fix, just export this environment variable as follows:
export GIT_SSL_NO_VERIFY=true