Loading... # Git proxy - 方法一:单次代理 此方法一般用在没有配置全局代理,偶尔clone一次的情况。 ```shell git clone -c http.proxy="10.10.10.120:7890" https://github.com/openwrt/openwrt.git ``` - 方法二:git全局代理设置 此方法一般用在编译是需要大量git仓库的情况 ```shell # set git config --global http.proxy http://10.10.10.120:7890 git config --global https.proxy https://10.10.10.120:7890 # unset git config --global --unset http.proxy git config --global --unset https.proxy ``` # shell proxy Last modification:August 15, 2023 © Allow specification reprint Like 0 If you think my article is useful to you, please feel free to appreciate