部署到github流程

前端 2018-04-26

git执行下面命令生成SSH
ssh-keygen

打开复制
.ssh/id_rsa.pub

判断SSH是否配置好
ssh -T git@github.com

在_config.yml下面配置
deploy:
type: git
repository: https://github.com/codertian/codertian.github.io.git
或者:git@github.com:codertian/codertian.github.io.git
branch: master

保存,cd到Hexo的根目录
依次执行下面的命令

hexo clean
hexo g
hexo d