为Git Bash配置代理
在国内访问Git的速度非常慢,将博客上传到Github时经常报错fatal: unable to access https://github.com/EastonSun/EastonSun.github.io.git/: Failed to connect to github.com port 443 after 21174 ms: Could not connect to server,为Git Bash配置代理后错误消失。
配置代理
git config --global http.proxy http://127.0.0.1:10801 |
将端口号换成自己的代理端口
取消代理
git config --global --unset http.proxy |