In my case, I needed to disable the proxy server and authenticate SSL certificates, I do not really like this solution, since it does not suit me - disabling SSL certificate verification does not seem reasonable!
But here is the command I ran to get it to work:
git clone <addr of repo> --config http.proxy= --config http.sslVerify=false
source share