$ export http_proxy="http://127.0.0.1:12333"$ export https_proxy="http://127.0.0.1:12333"
$ git config --global http.proxy http://127.0.0.1:12333$ git config --global https.proxy http://127.0.0.1:12333
这种方法相当于在.gitconfig文件中写入:
[http] proxy = http://127.0.0.1:12333[https] proxy = http://127.0.0.1:12333