---
title: "git ss代理配置"
author: "fanfq"
date: "2016-10-31T12:57:48Z"
tags: []
categories: ["开源软件"]
slug: "git-ss"
draft: false
lastmod: "2016-10-31T13:37:13Z"
id: 2334413
url: "https://fanfq.iteye.com/blog/2334413"
---

**#http、https代理的配置与取消**
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080

git config --global --unset http.proxy
git config --global --unset https.proxy

**#如果已使用ss代理，则通过socks5协议，通过命令行的方式走ss通道**
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'

**#也可以直接编辑配置文件**
vi ~/.gitconfig

**#vi常用指令tips**
dd 删除一行
:w 存盘
:q  退出