多台电脑控制一个hexo博客
1.下载Git
2.下载Node.js
版本不要太高
3.新电脑创建新的ssh密钥
在Git-bash中
ssh-keygen -t rsa -C 'your_email@example.com'
在github->setting
->SSH && GPG keys
->new ssh key
测试是否成功
ssh -T git@github.com
如果出现
1 | Hi username! You've successfully authenticated, but GitHub does not |
3.1 设置用户信息
1 | $ git config --global user.name "用户名" |
4. 资源配置依赖
4.1 更换淘宝镜像
1 | npm config set registry https://registry.npm.taobao.org |
4.2 安装hexo
npm install -g hexo-cli
4.3 利用package.json
部署资源
1 | { |
1 | npm install |
5.hexo提交
1 | hexo clean |