遇到报错
1 | fatal: unable to access 'https://github.com/XXX/XXX.github.io.git/': Failed to connect to github.com port 443: Timed out |
解决方法
- 先搞清楚自己的梯子在本地的代理地址及端口号,一般为
127.0.0.1:xxxx
- 打开终端,依次输入
1 | git config --global http.proxy http://127.0.0.1:xxxx |
hexo d
即可部署- 部署好后取消代理
1 | git config --global --unset http.proxy |