1. Problem description
time: Thursday, June 4, 2020 15:19:26
today, when I was using
git push original master
command, the following error occurred suddenly:
why wouldFailed to connect to github.com port 443: Operation timed out
, previously I could push to the far end of GitHub
2. Solution
toss around for a long time, found a solution
enter the command sudo vim /etc/hosts
on the terminal (you must use sudo, as the administrator, or you cannot modify the hosts file)
, comment out the lines related to Github, save the hosts file, and then you can push to the remote Github
0
1 2
Saturday, June 13, 2020 18:14:30 update
if you comment out all GitHub related content, you may have a problem accessing GitHub images will not load, the solution please move to here