36 lines
760 B
Markdown
36 lines
760 B
Markdown
---
|
|
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)为代理软件的端口号
|