From 7d8fefd717a75a229215d57f3cb2ca1dbfd079a4 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 17:10:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=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 | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/content/post/git-failed-443.md b/content/post/git-failed-443.md index ce7df9c7..c9bd2b25 100644 --- a/content/post/git-failed-443.md +++ b/content/post/git-failed-443.md @@ -1,5 +1,5 @@ --- -title: "Vscode的Git报错:Failed to connect to github.com port 443 解决方案" +title: "Failed to connect to github.com port 443 解决方案" date: "2024-10-18T16:34:20+08:00" slug: "20241018-git-failed-443" draft: false @@ -7,23 +7,29 @@ categories: [] tags: [] author: "小赵同学" layout: "post" -status: "hidden" +status: "public" categories: ["笔记"] tags: [] --- -配置http代理Windows、Linux、Mac OS 中 git 命令相同 +最近在使用vscode的时候,使用vscode自带的git一直无法推送上去 + +一直使用的是折中的方法,通过GitHub Desktop解决,但是提交切换 + +体验感十分割裂,于是寻找解决方法,通过查阅资料,找到以下方法,用以记录和备份 + +理论上配置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 ```