[Solved] Failed to connect to 127.0.0.1 port XXXX: Connection refused

Failed to connect to 127.0.0.1 port XXXX: connection reused

a possible reason is the use of proxy

resolvent:

Query whether to use a proxy: git config --global http.proxy
To cancel the proxy: git config --global --unset http.proxy

Then we can have a good git clone.

Read More: