安装node.js
安装hexo npm install hexo -g
创建博客(blog)文件夹
hexo init blog
cd blog
hexo g
hexo s
注册github账号
创建仓库
电脑生成ssh-key
github上添加ssh-key
修改_config.yml文件
deploy:
type: git
repo: git@github.com:codepan/blog.git
branch: gh-pages
执行npm install hexo-deployer-git –save
执行 README
执行 git init
执行 git add README
执行 git commit -m “first commit”
执行 git config –global user.email “your@your.com”
执行 git config –global user.name “your name”
执行 hexo clean
执行 hexo g
执行 hexo d
版权声明:本文为haozhoupan原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。