Git error: could not resolve host: gitcode.net solution

An error occurred when executing git pull origin master: could not resolve host: gitcode.net

Solution:

1. win+r enter cmd to enter the command line

2. Enter ping gitcode.net and press Enter

3. Find the hosts in the etc file in the Git directory, and open it with Notepad

 4. Add the domain name and IP address to the hosts configuration file

 5. Execute the Git command again

 

Guess you like

Origin blog.csdn.net/jayusmazyyolk/article/details/126187599