- Install hexo-deployer-git.
1
2cd hexo_project
npm install hexo-deployer-git --save
Edit _config.yml
1
2
3
4
5deploy:
type: git
repo: <repository url> #https://github.com/DanielPei/danielpei.github.io
branch: [branch] # master
message: [message] # leave this blankDeploy
1
hexo clean && hexo deploy
Ref: