记录Hexo和git使用无法连接-443问题.md

在使用Hexo上传博客文件的时候出现了一次**Git报错: Failed to connect to github.com port 443 **,解决问题方法是给git配置代理,我使用clash代理,我使用的ip和端口127.0.0.1:7890,配置如下:

git config –global http.proxy 127.0.0.1:7890
git config –global https.proxy 127.0.0.1:7890

也可以给socket5配置:

git config –global http.proxy socks5 127.0.0.1:7890
git config –global https.proxy socks5 127.0.0.1:7890

hexo的_config.yml文件deploy中Git token配置,在第一次上传hexo d时候,需要输入密码就是配置的token。


记录Hexo和git使用无法连接-443问题.md
http://example.com/2024/01/22/记录Hexo和git使用无法连接-443问题/
作者
xdd
发布于
2024年1月22日
许可协议