Pod update 更新實(shí)際上就是git在更新代碼,若git更新慢,Pod自然會慢
開啟系統(tǒng)代碼更新Pod,git并不是使用的系統(tǒng)代理,而是需要手動配置的(即便使用全局代理模式也一樣不會生效)
找到自己的代理地址:
image.png
1. 使用命令設(shè)置git代理
git config --global http.proxy socks5://127.0.0.1:1087
git config --global http.https://github.com.proxy socks5://127.0.0.1:1087
2. 使用命令取消git代理
git config --global --unset http.proxy
git config --global --unset http.https://github.com.proxy
注意
- 若不取消息代理,自己搭建的git服務(wù)器,可能無法正常提交代碼
- 命令中的端口號需要使用本機(jī)代理App上實(shí)際的端口號,各代理App的端口號可能不一樣
更好的辦法:
終端掛代理
export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890
終端取查看代理
env | grep -I proxy
終端取消代理
unset https_proxy unset http_proxy unset all_proxy