hexo博客迁移

本文最后更新于 2022年1月22日 下午

hexo 博客迁移

  1. 从原电脑下载源码,删除 node_modules 文件夹,然后重新下载
  2. 准备好 git 和 node.js,然后进入相应文件夹,用 git 打开,输入如下命令:
1
2
3
npm install hexo-cli -g
npm install
npm install hexo-deployer-git --save
  1. 此时如果使用主题,需要把删除 node_modules 中的主题重新粘贴替换进来,主题文件就正常了。
  2. 测试,用 hexo s 来看到你的博客是否迁移成功
  3. 设置 git
1
2
3
git config --global user.name "xxx"
git config --global user.email "xxx@xx.com"
git init
  1. 编辑文章后,hexo d 上传成功即说明迁移成功

hexo博客迁移
https://k3ppf0r.github.io/2022/01/22/杂/hexo博客迁移/
作者
k3ppf0r
发布于
2022年1月22日
许可协议