1、在/usr/bin/gitproxy文件,并编辑
#!/bin/bash https_proxy="127.0.0.1:8087" export https_proxy http_proxy="127.0.0.1:8087" export http_proxy git config --global http.sslVerify false
2、可执行权限
# chmod a+x /usr/bin/gitproxy
3、在当前用户下执行
$ . /usr/bin/gitproxy
1、在/usr/bin/gitproxy文件,并编辑
#!/bin/bash https_proxy="127.0.0.1:8087" export https_proxy http_proxy="127.0.0.1:8087" export http_proxy git config --global http.sslVerify false
2、可执行权限
# chmod a+x /usr/bin/gitproxy
3、在当前用户下执行
$ . /usr/bin/gitproxy