Problem Description:
Solution:
method one:
Add https:// in front of the server, as follows:
Then reconnect and find that the problem is solved.
Method Two:
1. Use cmd to ping github.com and find that the packet loss rate is 100%
2. Go to the host file of the computer to make changes, the path is as follows:
C:\Windows\System32\drivers\etc
Find the host file, then right-click-Properties-Security-Edit, select the user currently logged in on the computer, give yourself the highest authority, and confirm. Add the following at the end:
192.30.253.113 github.com
192.30.252.131 github.com
185.31.16.185 github.global.ssl.fastly.net
74.125.237.1 dl-ssl.google.com
173.194.127.200 groups.google.com
192.30.252.131 github.com
185.31.16.185 github.global.ssl.fastly.net
74.125.128.95 ajax.googleapis.com
Save and exit.
3. Go to ping github again:
Found that it can be pinged.
4. Then go to IDEA to connect to github, and the connection is successful.