One afternoon, the server (linux) suddenly failed to pull/push or clone the code on github, and the error was reported as follows:
fatal: unable to access 'https://github.com/microsoft/GLIP.git/': Failed to connect to github.com port 443: Connection refused
I tried to modify the proxy and other methods, but I still couldn't solve it, and finally found a solution:
Modify the /etc/hosts file. The hosts file is a file in the Linux system responsible for the rapid resolution of IP addresses and domain names.
step:
vi /etc/hosts
- Just add the line:
140.82.114.3 github.com
Then you can pull the code again