更新了文章
This commit is contained in:
1 parent
1923a775fe
commit
32de6a4a26
1 file changed
+35
@@ -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)为代理软件的端口号
|
||||||
Reference in new issue
Block a user