Tag Archives: github fatal: unable to access ‘xxxx’: Could not resolve host:xxx

[Solved] github fatal: unable to access ‘xxxx’: Could not resolve host:xxx

These two days, I have encountered a strange problem, that is, GIT’s push and pull can’t be used. Report the following error:

Then I went to Google Baidu and found a reliable solution

First, Ping the code warehouse address: Ping gitlab.alibaba-inc.com

If an error is reported:

Then find a machine that can ping, and have a look at the IP address after Ping:

The last step is to add the IP address and code warehouse address to the local hosts: