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"
评论
预览将在此处显示...
这是一个示例评论。GitHub风格的评论区已经成功集成到您的博客中!