description: git的服务器在国外,导致正常拉github项目会很慢,还有可能会超时。所以需要一个科学上网软件,设置代理端口。
date: '2022-09-28 00:00:00'
permalink:/
categories: 碎片杂文
updated: '2024-01-11T01:10:00.000Z'
tags:
- Git
title: Git设置代理
摘要
git的服务器在国外,导致正常拉github项目会很慢,还有可能会超时。所以需要一个科学上网软件,设置代理端口。
需求环境
-
代理软件
我使用的是qv2ray代理,查看一下你的代理端口。
平台设置
Mac设置
- 打开终端,输入下面的指令
git config --global http.proxy 'socks5://127.0.0.1:1089'
git config --global https.proxy 'socks5://127.0.0.1:1089'
评论区