I’m behind a HTTPS proxy, and direct connections to port 443 are blocked by my firewall. I’ve got a proxy setting in System Preferences and other stuff works fine, but a direct connection will fail. However, Glyphs tries to make a direct connection:
git respects http_proxy and https_proxy environment variables. If you can get the appropriate values from the OS and set them in the environment it should work.