前言:本文章的前提是默认你已经安装了git,node,npm,电脑也与github建立 了联系

npm install -g cnpm --registry=https://registry.npm.taobao.org

cnpm install -g hexo-cli
hexo -v



D:\blog_hexo目录下安装一个hexo部署插件cnpm install --save hexo-deployer-git

打开D:\blog_hexo目录,找到_config.yml 文件,使用编译器打开,建议使用 Visual Studio Code打开,找到第100行,deploy

将其改成下面的内容
deploy:
type: git
repository: git@github.com:xxx/xxx.github.io.git
branch: master
保存该文件,使用git bash部署到github上
hexo d

Hexo yilia主题搭建自己的github个人博客(一)
原文:https://www.cnblogs.com/miao-blog/p/13193972.html