hexo上传静态文件及源码

创建github分支 master 和 source, 设置master为默认分支

配置hexo下的_config.yml 发布到master

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

clone源码分支source仓库到本地

1
git clone -b source https://github.com/yourname/yourname.github.io.git

上传源码

1
2
3
git add .
git commit
git push origin master:source

发布静态文件

1
2
hexo clean
hexo generate -d

yes

分享