hugo搭建个人博客--记录

使用HUGO搭建个人博客

https://www.gohugo.org/

Git问题

解决Git上传过程中:error: failed to push some refs to 'git@github.com

https://blog.csdn.net/qq_41485414/article/details/80745910

git pull origin master    #下载

git push -u origin master    #上传


 

 创建 themes 目录$cdthemes$ 

git clone https://github.com/spf13/hyde.git

运行Hugo

在你的站点根目录执行 Hugo 命令进行调试:

 hugo server --theme=hyde --buildDrafts

cd public

git add.

git commit -m "first"

关于git中push出现Everything up-to-date

parkin@parkindeAir:~/testDemo$ git push -u origin master

分支'master'设置为跟踪来自'origin'的远程分支'master'。

Everything up-to-date

以下这几种情况可能会报Everything up-to-date:

1. 没有执行add:git add .

2.没有提交commit:git commit -m "XXXXX"

3.如果add、commit了还是报Everything up-to-date,要么是你项目文件夹为空,要么就是项目文件没有进行任何修改。

Git问题Everything up-to-date解决

https://www.cnblogs.com/sminocence/p/6546891.html

 注:最终还是用的hexo,hugo我觉得有点小麻烦

原文地址:https://www.cnblogs.com/rab3it/p/11366810.html