Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 479 Bytes

File metadata and controls

33 lines (21 loc) · 479 Bytes

git-proxy

中文

make git consume proxy env

How to install

go get github.com/fishead/git-proxy

How to use

Just prepend proxy before clone, fetch or push

# set http proxy
export HTTP_PROXY=http://127.0.0.1:1087

# or socks5 proxy
export SOCKS_SERVER=127.0.0.1:1087

# then
git proxy clone git@github.com:fishead/git-proxy.git

# or
git proxy clone https://github.com/fishead/git-proxy.git

Is it awesome

Yes.