-
使用
hexo d
上传博客时出现以下两种错误 :
fatal: unable to access 'https://github.com/xxx/xxx.github.io/': The requested URL returned error: 403
或者
fatal: unable to access 'https://github.com/xxx/xxx.github.io/': OpenSSL SSL_read: Connection was reset, errno 10054
解决办法:将
_config.yml
文件中的
http
链接修改成
ssh
的链接
deploy:
type: 'git'
repo: git@github.com:xxx/xxx.github.io.git
branch: main
- 若还出现以下错误:
remote: error: GH007: Your push would publish a private email address.
将GitHub的
setting
–>
emails
–>
Keep my email addresses private
勾选取消。
版权声明:本文为ld1461575230原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。