Loading... 下面这篇文章给出了详细的步骤教学: [GitHub Pages + Hexo搭建个人博客网站,史上最全教程_淡淡的说非的博客-CSDN博客_github搭建个人博客](https://blog.csdn.net/yaorongke/article/details/119089190) 大体上来说,按照它的提示即可基本上部署成功。 几个可能遇到的错误是: ### 1 密码验证方式已取消 报错信息: ```powershell remote: Support for password authentication was removed on August 13, 2021. remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication. fatal: Authentication failed for 'xxx' ``` 这是由于密码验证方式已经`removed`,我们可以根据之前生成的密钥更改我们的信息,方式在[这里](https://blog.csdn.net/MAIMIHO/article/details/121077359)有提到,更改`_config.yml`中我们配置的`repo`即可: ```powershell repo: https://YOUR_TOKEN@github.com/USR_NAME/REPO_NAME.github.io.git ``` ### 2 代理连接报错 报错信息: ```powershell fatal: unable to access 'xxx': GnuTLS recv error (-110): The TLS connection was non-properly terminated. ``` 解决方案在[这里](https://www.cnblogs.com/forforever/p/16451444.html)有提到,我们下载一个工具然后关闭SSL即可: ```powershell apt-get install gnutls-bin git config --global http.sslVerify false git config --global http.postBuffer 1048576000 ``` ### 3 权限不足 记得生成`token`时开启全部权限。 ### 部署方式 直接: ```powershell hexo g[enerate] -d[eploy] ``` 即可。 © 允许规范转载 打赏 赞赏作者 赞 如果觉得我的文章对你有用,请随意赞赏