搭建博客过程! 2020/5/9 16:27 Write关键词:GitPage 1234567891011121314151617181920下载安装git//下面的终端操作都使用Git Bush Herenpm install hexo-cli -g //安装hexohexo init *****.github.io (****为自己的github名)//初始化博客cd *****.github.io //进入目录hexo g//生成静态页面hexo s//启动服务器,在localhost:4000上查看刚生成的博客页ssh-keygen -t rsa -C "**********" (****为个人邮箱,注意引号)//配置SSH根据路径找到id_rsa.pub,复制里面的内容在Github项目当中Setting中找到SSH and GPG keys黏贴进去ssh -T git@github.com (输入yes)//回到Git Bash中检查需要在主文件夹中的_config.yml文件配置deploy // 配置属性的时候需要在冒号后空一格,不然会报错deploy: type: git repo: **********//你的项目地址 类:https://github.com/yourname/yourname.github.io.git branch: masternpm install hexo-deployer-git --save //安装插件hexo clean //清理public文件夹hexo g//同上hexo d//部署到github的项目中许多坑,希望找到方法解决。