修改文章
This commit is contained in:
1 parent
07581cc62c
commit
7d8fefd717
1 file changed
+11
-5
@@ -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"
|
date: "2024-10-18T16:34:20+08:00"
|
||||||
slug: "20241018-git-failed-443"
|
slug: "20241018-git-failed-443"
|
||||||
draft: false
|
draft: false
|
||||||
@@ -7,23 +7,29 @@ categories: []
|
|||||||
tags: []
|
tags: []
|
||||||
author: "小赵同学"
|
author: "小赵同学"
|
||||||
layout: "post"
|
layout: "post"
|
||||||
status: "hidden"
|
status: "public"
|
||||||
categories: ["笔记"]
|
categories: ["笔记"]
|
||||||
tags: []
|
tags: []
|
||||||
---
|
---
|
||||||
|
|
||||||
配置http代理Windows、Linux、Mac OS 中 git 命令相同
|
最近在使用vscode的时候,使用vscode自带的git一直无法推送上去
|
||||||
|
|
||||||
|
一直使用的是折中的方法,通过GitHub Desktop解决,但是提交切换
|
||||||
|
|
||||||
|
体验感十分割裂,于是寻找解决方法,通过查阅资料,找到以下方法,用以记录和备份
|
||||||
|
|
||||||
|
理论上配置http代理Windows、Linux、Mac OS 中 git 命令一致
|
||||||
|
|
||||||
## 配置socks5代理 ##
|
## 配置socks5代理 ##
|
||||||
|
|
||||||
```bash
|
```
|
||||||
git config --global http.proxy socks5 127.0.0.1:10809
|
git config --global http.proxy socks5 127.0.0.1:10809
|
||||||
git config --global https.proxy socks5 127.0.0.1:10809
|
git config --global https.proxy socks5 127.0.0.1:10809
|
||||||
```
|
```
|
||||||
|
|
||||||
## 配置http代理
|
## 配置http代理
|
||||||
|
|
||||||
```bash
|
```
|
||||||
git config --global http.proxy 127.0.0.1:10809
|
git config --global http.proxy 127.0.0.1:10809
|
||||||
git config --global https.proxy 127.0.0.1:10809
|
git config --global https.proxy 127.0.0.1:10809
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in new issue
Block a user