hexo博客上传github page
hexo博客上传github page
本文搬运自本人高中时期CSDN博客,若图片加载不出来,可到原文查看:https://blog.csdn.net/zhangtingxiqwq/article/details/161562364
-
在github上新建仓库,仓库名必须严格为
用户名.github.io,并在setting里打开github page的设置 -
在
_config.yml加入:
1 | deploy: |
- git下载插件:
1 | npm install hexo-deployer-git --save |
- 终端上传:
1 | hexo clean; hexo g; hexo d |
- 终端由于网络上传失败,要去配代理
1 | git config --global http.proxy http://127.0.0.1:17890 |
配完后可以取消:
1 | git config --global --unset http.proxy |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 zhangxixi的博客!





