如何备份hexo博客
刘梦凯 Lv3

备忘

1.需要将整个博客文件夹和github上一个新项目关联起来 命令类似git set-url…
2.需要删除你使用的主题主文件夹中的.git目录 否则会被看做是一个子module
3.git push origin master推送上去
4.git pull origin master拉下来 并且还需要用npm下载一些包

npm install hexo-cli
npm install
npm install hexo-deployer-git

不用再执行hexo init命令

参考:
https://lrscy.github.io/2018/01/26/Hexo-Github-Backup/
https://finisky.github.io/2020/09/06/hexobackuptogithub/

  • Post title:如何备份hexo博客
  • Post author:刘梦凯
  • Create time:2022-03-29 23:54:32
  • Post link:https://liumengkai.github.io/2022/03/29/如何备份hexo博客/
  • Copyright Notice:All articles in this blog are licensed under BY-NC-SA unless stating additionally.