git_proxt_set

Time:2021-7-30

title: git_proxt_set
categories: [git]
tags: [git, proxy, config]
date: 2017-08-01 21:23:05
Description: how to set up an agent in Git to let git go through the agent, so as to quickly pull branches from GitHub


set git through proxy:

set gir proxy

git config --global http.proxy socks5://127.0.0.1:1080
git config --global http.proxy http://127.0.0.1:1080
git config --global http.proxy https://127.0.0.1:1080

git config –usage

git config –global [name] [name_value]

Recover git global config:

git config –global –unset [name]