在这里插入图片描述

▚ 01 遇到的问题

  • 使用以下命令,提交代码到远程仓库时,
$ git push -u origin master
  • 遇到如下问题:
fatal: unable to access 'https://github.com/xxx/': Failed to connect to github.com port 443: Timed out

在这里插入图片描述

▚ 02 解决方法


只需3步:设置代理、取消代理、再次提交。

👉 2.1 设置代理

$ git config --global https.proxy

👉 2.2 取消代理

$ git config --global --unset https.proxy

👉 2.3 再次提交

$ git push -u origin master

在这里插入图片描述



在这里插入图片描述

Logo

一站式 AI 云服务平台

更多推荐