博客迁移
博客迁移记录
- 迁移原本的整个blog文件夹
- 在新电脑的bolg目录安装git、node.js、npm、hexo环境
- 在windows终端生成密钥
git config --global user.name "你的用户名"
git config --global user.email "你的邮箱@qq.com"
ssh-keygen -t rsa -C "你的邮箱@qq.com"
- github个人主页设置的 SSH and GPG keys 中新建 SSH key
- 在blog目录中打开git bash执行下面命令
npm install hexo-cli -g
npm install hexo-deployer-git --save