github搭建个人博客笔记
一,工具配置1,node.js配置安装完成后配置:安装时勾选上这个:安装成功:在node.js的安装目录下新建下面两个文件夹:npm config set prefix "D:\Nodejs\node_global"npm config set cache "D:\Nodejs\node_cache"环境变量:2,git配置:参考文章:Windows系统Git安装教程(详解Git安装过程) - 学
·
一、工具配置
1,node.js配置
安装完成后配置:
安装时勾选上这个:
安装成功:
在node.js的安装目录下新建下面两个文件夹:
npm config set prefix "D:\Nodejs\node_global"
npm config set cache "D:\Nodejs\node_cache"
环境变量:
2,git配置
参考文章:
Windows系统Git安装教程(详解Git安装过程) - 学为所用 - 博客园 (cnblogs.com)
Git的安装教程_头秃怎么办的博客-CSDN博客_git安装
3,Hexo配置
npm install hexo-cli -g
二,github仓库搭建
三,生成ssh key
ssh-keygen -t rsa -C "githu注册邮箱地址"
四次回车
C:\Users\Administrator\.ssh
$ ssh -T git@github.com
四,生成本地博客
$ hexo init
五,发布网上
deploy:
type: git
repository: https://github.com/quiwe/quiwe.github.io.git
branch: main
安装一个工具:
$ npm install hexo-deployer-git --save
生成页面:
$ hexo g
配置邮箱和用户名:
$git config --global user.email "quiwe@qq.com"
$ git config --global user.name "quiwe"
上传页面:
$ hexo d
配置令牌:
全选
六,绑定域名
更多推荐
已为社区贡献1条内容
所有评论(0)