使用hexo deploy推送至github

找至config.yml文件中的deploy

1
2
3
4
deploy:
type: git
repo: https://github.com/S1283034852/S1283034852.github.io.git
branch: master

安装hexo deploy插件

1
2
3
npm install hexo-deployer-git --save

npm install hexo-deployer-git --s

上传github

无需原始打包命令,项目根目录执行如下命令即可:

1
2
3
hexo deploy

hexo d

下次推送记得删除.deploy_git文件夹后再次hexo deploy
否则会被.gitignore过滤