Git Proxy配置
因为git被半墙的原因,部署Hexo时一直卡在git,使用npm config set registry
更换npm为淘宝源后,又卡在git clone landscape ,landscape是hexo的默认主题,托管在 Github上,clone 的指令是内置在 hexo-cli 的 install.js 中的。这个时候就算 npm 换源,这一步也绕不过去,看着5Kb/s的clone速度忍不住再一次对GFW爆粗,无奈只能使用代理服务器
设置代理
http/https
git config --global https.proxy https://127.0.0.1:1080
git config --global http.proxy http://127.0.0.1:1080
ss/ssr
git config --global https.proxy 'socks5://127.0.0.1:1080'
git config --global http.proxy 'socks5://127.0.0.1:1080'
取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
- 感谢你赐予我前进的力量
赞赏者名单
因为你们的支持让我意识到写文章的价值🙏
评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果