###1. 本地安装html
###2. 从github上导入node
hexo init
//在文件夹下建立相应文件INFO You are almost done! Don't forget to run 'npm install' before you start blogging with Hexo!git
npm install
//建立node_modules目录github
修改目录下的_config.yml文件npm
#Deployment
##Docs: http://hexo.io/docs/deployment.html
deploy:hexo
如下是新增 type: git
//注意冒号后的空格 repository: git@github.com:name/name.git
//ssh格式而不是https格式,本地多个key的时候注意主机名
branch: master
ssh
ssh -T git@github.com
//本地多个key的时候,注意测试的主机名测试
###常见错误code
hexo d
发布时提示'ERROR Deployer not found: git 'npm install hexo-deployer-git --save