使用github搭建blog

来源:互联网 发布:c语言delay函数 编辑:程序博客网 时间:2024/06/08 14:36

买了个域名,然后写了篇文章,记录域名指向自己的vps,很正常的关键字,然后莫名其妙的被封了博客,所有博客都打不开,正好也需要看之前的一些记录,太操蛋了,刚好买了域名,自然而然要自己搭建博客了,在别人家总是不自在吧!

一、本地和github ssh通信
1、安装git
2、ssh密钥设置
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/#adding-your-ssh-key-to-the-ssh-agent

3、安装nodejs       node -v查看版本号4、安装hexo    npm install -g hexo-cli5、把hexo分支设置为默认分支

https://hexo.io/zh-cn/docs/index.html