hexo d 推送到远端失败
1.使用hexo d
上传博客时出现以下两种错误 :
1
| fatal: unable to access 'https://github.com/xxx/xxx.github.io/': The requested URL returned error: 403
|
或者
1 2
| fatal: unable to access 'https://github.com/xxx/xxx.github.io/': OpenSSL SSL_read: Connection was reset, errno 10054
|
解决办法:将_config.yml
文件中的http
链接修改成ssh
的链接
1 2 3 4
| deploy: type: "git" repo: git@github.com:xxx/xxx.github.io.git branch: main
|
2.若还出现以下错误:
1 2
| remote: error: GH007: Your push would publish a private email address.
|
将GitHub的setting
–>emails
–>Keep my email addresses private
勾选取消。
3.hexo d 出现 hexo help
1 2
| $ hexo g -d //使用这个可以解决,具体也不太清楚,反正之前不行的行了
|