- 使用
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
勾选取消。