hexo 备份

1、克隆仓库

1
[email protected]:moshiqiqian/my_hexo_code.git

2、power shell在管理员模式下运行

1
set-ExecutionPolicy RemoteSigned

3、初始化hexo,在vscode中运行

1
npm i

4、删除.deploy_git 文件夹

5、配置控制台,避免部署时候过长的输出

1
git config --global core.autocrlf false

6、因为现在是非全局目录的hexo,三部曲变为

1
npx hexo cl; npx hexo g; npx hexo d