解决拉取 github 仓库报错 “gnutls_handshake () failed” 问题

解决拉取 github 仓库报错 “gnutls_handshake () failed” 问题

💡 原文中文,约700字,阅读约需2分钟。
📝

内容提要

本文讨论了由于代理设置错误导致无法从GitHub拉取库的问题。解决方法包括取消代理或正确配置代理。取消代理的命令为:`git config --global --unset http.proxy`和`git config --global --unset https.proxy`。如果需要使用代理,可以通过相应命令配置http和https协议,示例中使用7890端口。

🎯

关键要点

  • 由于代理设置错误,导致无法从GitHub拉取库。

  • 错误的代理配置包括为http错误配置了https的代理。

  • 取消代理的命令为:git config --global --unset http.proxy 和 git config --global --unset https.proxy。

  • 如果需要使用代理,可以通过命令配置http和https协议,示例中使用7890端口。

  • socket协议的配置示例为:git config --global http.proxy 'socks5://127.0.0.1:1080' 和 git config --global https.proxy 'socks5://127.0.0.1:1080'。

🏷️

标签

➡️

继续阅读