git clone can't resolve proxy
Seems the problem is reported in the mailing list. Does this help?
git config --global --unset http.proxy
Run the below command in git bash
git config --global --unset http.proxy
Note: Don't forget to restart the git bash, otherwise it won't work.
Also make sure to remove HTTPS_PROXY and HTTP_PROXY environment variables.
If the above steps didn't work for you, try setting your companies proxy as shown below;
git config --global http://example.com:8080
git config --global https://example.com:8080
**change example.com/8080 with your companies proxy and port
I just got the same issue, when pushing behind a firewall.
The problem wasn't an empty http_proxy var (git var -l didn't show any proxy variable), and my OS environment variables included:
http_proxy=username:[email protected]:port
https_proxy=username:[email protected]:port
no_proxy=.company
This setting would always trigger a:
error: Couldn't resolve proxy '(null)' while accessing https://...
However, as soon I changed the proxy variables, adding an 'http://
' in front of the proxy addresses, the error message stopped:
http_proxy=http://username:[email protected]:port
https_proxy=http://username:[email protected]:port
no_proxy=.company
(note the 'http://
' even for the https proxy address)