Fill these in once
- Refresh the trusted certificates
brew install ca-certificatesBehind a company proxy? Ask IT for its root certificate (a .crt file) and use the next two steps.
- Tell Git to trust your company's certificate
git config --global http.sslCAInfo ~/company-ca.crt - Tell curl to trust it
curl --cacert ~/company-ca.crt https://github.com/git/git.git
- Add your company's certificate to the systemNeeds sudo
sudo cp ~/company-ca.crt /usr/local/share/ca-certificates/company.crt sudo update-ca-certificatesBehind a company proxy? Ask IT for its root certificate (a .crt file).
- Check curl now trusts it
curl -I https://github.com/git/git.git
- Make Git use the Windows certificate store
git config --global http.sslBackend schannelThis fixes most cases, because Windows already trusts your company's certificates.
Check it worked
- Try again
git ls-remote https://github.com/git/git.git