Skip to content
Go back

Git 操作备忘录

Published:  at  05:06 AM Updated:  at  09:10 AM
阅读时间:1 分钟

Git 操作备忘录

提交

操作时请先检查网络是否为校园网,校园网可能被墙的更彻底,无法操作请切换流量或者其他网络。

提交时遇到问题fatal: unable to access ‘https://github.com/.../.git‘: Recv failure Connection was reset以及fatal: unable to access 'https://github.com/xxx.git/': Failed to connect to github.com port 443 after 21054 ms: Could not connect to server,尝试:

  • 关掉梯子
  • 配置代理:
git config --global --unset http.proxy // 取消代理
git config --global --unset https.proxy

如果暂时提交不上可以多试几次,等一会就好了。

clone 失败

如果出现fatal: unable to access 'https://github.com/microsoft/xxx/': Failed to connect to github.com port 443: Timed out或者fatal: unable to access 'https://github.com/xxx/xx/': OpenSSL SSL_read: Connection was reset, errno 10054错误,同样尝试:

git config --global --unset http.proxy // 取消代理
git config --global --unset https.proxy

如果还 clone 失败还可以尝试:

git config --global http.sslVerify "false"


评论

用户头像

预览将在此处显示...

加载评论中...
评论用户头像
che1sy 2025年6月30日

这是一个示例评论。GitHub风格的评论区已经成功集成到您的博客中!