git push -u origin master
执行这一行出现连接超时
解决方案:
找到你的.ssh文件夹找到里面的config
将一下内容复制进去即可
Host github.com
HostName ssh.github.com # 这是最重要的部分
User git
Port 443
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
附学习文章:关于本地git通过ssh链接github时 time out问题的解决方法_github timeout-CSDN博客