分享一个本地提交github超时问题的解决方式:
现象:github.com port 22
提示:ssh: connect to host github.com port 22: Operation timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决方案:
打开或者新建这个文件:vim ~/.ssh/config
添加如下内容即可:
Host github.com
Hostname ssh.github.com
Port 443
方案参考自:
gist.github.com