From 07581cc62c695104ee30b27c1a3a25edc460d483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=B5=B5=E5=90=8C=E5=AD=A6?= Date: Fri, 18 Oct 2024 16:58:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BA=86=E6=96=87=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- content/post/git-failed-443.md | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 content/post/git-failed-443.md diff --git a/content/post/git-failed-443.md b/content/post/git-failed-443.md new file mode 100644 index 00000000..ce7df9c7 --- /dev/null +++ b/content/post/git-failed-443.md @@ -0,0 +1,35 @@ +--- +title: "Vscode的Git报错:Failed to connect to github.com port 443 解决方案" +date: "2024-10-18T16:34:20+08:00" +slug: "20241018-git-failed-443" +draft: false +categories: [] +tags: [] +author: "小赵同学" +layout: "post" +status: "hidden" +categories: ["笔记"] +tags: [] +--- + +配置http代理Windows、Linux、Mac OS 中 git 命令相同 + +## 配置socks5代理 ## + +```bash +git config --global http.proxy socks5 127.0.0.1:10809 +git config --global https.proxy socks5 127.0.0.1:10809 +``` + +## 配置http代理 + +```bash +git config --global http.proxy 127.0.0.1:10809 +git config --global https.proxy 127.0.0.1:10809 +``` + +## 注意 + +命令中的主机号(127.0.0.1)是使用的代理的主机号 + +命令中的端口号(10809)为代理软件的端口号