Notice: 函数 WP_Scripts::localize 的调用方法不正确$l10n 参数必须是一个数组。若要将任意数据传递给脚本,请改用 wp_add_inline_script() 函数。 请查阅调试 WordPress来获取更多信息。 (这个消息是在 5.7.0 版本添加的。) in /data/www/appblog/wp-includes/functions.php on line 6131

Git设置和取消代理

本地开启VPN后,GIt也需要设置代理,才能正常略过GFW,访问google code等网站

(1)设置代理

  • SSR Client

git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global http.proxy 'socks5://127.0.0.1:1080' 
git config --global https.proxy 'socks5://127.0.0.1:1080'
  • Privoxy
git config --global http.proxy http://192.168.16.28:8118
git config --global https.proxy https://192.168.16.28:8118

或者编辑用户目录下的~/.gitconfig

[http]
proxy = http://username:password@host:port
[https]
proxy = http://username:password@host:port

(2)取消代理

$ git config --global --unset http.proxy
$ git config --global --unset https.proxy
上一篇 IDEA设置SSR本地代理
下一篇 Linux常用命令设置和取消代理