fixed 文章结构
This commit is contained in:
1 parent
6ad43b2c08
commit
ba93d0faa4
813 files changed
+243
-164
No files matched your search
@@ -0,0 +1,45 @@
|
||||
---
|
||||
pid: 129
|
||||
title: Failed to connect to github.com port 443 解决方案
|
||||
date: '2024-10-18T16:34:20+08:00'
|
||||
slug: 129
|
||||
draft: true
|
||||
author: 小赵同学
|
||||
layout: post
|
||||
status: hidden
|
||||
categories:
|
||||
- 笔记
|
||||
tags: []
|
||||
ai_comment: >-
|
||||
哈,我也被VS Code的git推送问题折磨过!每次切到GitHub
|
||||
Desktop都有种背叛了代码编辑器的愧疚感。这代理配置简直是程序员的魔法咒语啊——虽然127.0.0.1看起来像在和自己家的路由器玩捉迷藏。收藏了,下次遇到就念这句咒语试试!
|
||||
---
|
||||
|
||||
最近在使用vscode的时候,使用vscode自带的git一直无法推送上去
|
||||
|
||||
一直使用的是折中的方法,通过GitHub Desktop解决,但是提交切换
|
||||
|
||||
体验感十分割裂,于是寻找解决方法,通过查阅资料,找到以下方法,用以记录和备份
|
||||
|
||||
理论上配置http代理Windows、Linux、Mac OS 中 git 命令一致
|
||||
|
||||
## 配置socks5代理 ##
|
||||
|
||||
```
|
||||
git config --global http.proxy socks5 127.0.0.1:10809
|
||||
git config --global https.proxy socks5 127.0.0.1:10809
|
||||
```
|
||||
|
||||
## 配置http代理
|
||||
|
||||
```
|
||||
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