Twilight6 发表于 2023-5-21 13:58:45

歌者文明清理员 发表于 2023-5-21 13:53




把你仓库公开下,让我看看你的文件

歌者文明清理员 发表于 2023-5-21 14:02:12

Twilight6 发表于 2023-5-21 13:58
把你仓库公开下,让我看看你的文件

https://github.com/dddddgz/blog

Twilight6 发表于 2023-5-21 14:07:04

歌者文明清理员 发表于 2023-5-21 14:02
https://github.com/dddddgz/blog



你 butterfly 文件夹为空的?重新安装主题,先前说删除 .git 文件夹,不是整个主题文件下的文件

歌者文明清理员 发表于 2023-5-21 16:46:31

error: failed to push some refs to 'https://github.com/dddddgz/blog.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Twilight6 发表于 2023-5-21 16:55:40

歌者文明清理员 发表于 2023-5-21 16:46




远程和本地都进行了改变,导致冲突了

建议你重新把远程库 pull 到本地,重新更改再 push 代码

另外认真按照教程一步步来呀,就没那么多问题啦~

歌者文明清理员 发表于 2023-5-21 17:04:41

Twilight6 发表于 2023-5-21 16:55
远程和本地都进行了改变,导致冲突了

建议你重新把远程库 pull 到本地,重新更改再 push 代码


E:\blog>git pull https://github.com/dddddgz/blog
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcm/tlsverify for more information.
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcm/tlsverify for more information.
remote: Enumerating objects: 17, done.
remote: Counting objects: 100% (17/17), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 17 (delta 0), reused 17 (delta 0), pack-reused 0
Unpacking objects: 100% (17/17), 27.96 KiB | 596.00 KiB/s, done.
From https://github.com/dddddgz/blog
* branch            HEAD       -> FETCH_HEAD
fatal: refusing to merge unrelated histories

E:\blog>git push -u origin master
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcm/tlsverify for more information.
warning: ----------------- SECURITY WARNING ----------------
warning: | TLS certificate verification has been disabled! |
warning: ---------------------------------------------------
warning: HTTPS connections may not be secure. See https://aka.ms/gcm/tlsverify for more information.
To https://github.com/dddddgz/blog.git
!       master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/dddddgz/blog.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Twilight6 发表于 2023-5-21 17:07:14

歌者文明清理员 发表于 2023-5-21 17:04



git pull --rebase origin master
然后再 push

歌者文明清理员 发表于 2023-5-21 17:07:48

Twilight6 发表于 2023-5-21 17:07
然后再 push

还是一样的报错{:10_277:

Twilight6 发表于 2023-5-21 17:11:05

歌者文明清理员 发表于 2023-5-21 17:07
还是一样的报错{:10_277:



QQ 聊吧,论坛叠太多楼了哈哈,加你了,同意下

歌者文明清理员 发表于 2023-5-21 17:13:38

Twilight6 发表于 2023-5-21 17:11
QQ 聊吧,论坛叠太多楼了哈哈,加你了,同意下

没看见啊
我qq:1978563501,看我邮箱

Twilight6 发表于 2023-5-21 17:15:39

歌者文明清理员 发表于 2023-5-21 17:13
没看见啊
我qq:1978563501,看我邮箱



现在呢,我申请两次了,我的QQ:327981933

歌者文明清理员 发表于 2023-5-21 17:20:19

Twilight6 发表于 2023-5-21 17:15
现在呢,我申请两次了,我的QQ:327981933

isdkz 发表于 2023-5-22 00:33:59

静态博客是不是更新内容挺麻烦的?

小伤口 发表于 2023-5-22 01:02:30

isdkz 发表于 2023-5-22 00:33
静态博客是不是更新内容挺麻烦的?

是的每次要重新在git提交,刷新也有点延迟,但也还好,不是挺麻烦

isdkz 发表于 2023-5-22 01:04:16

小伤口 发表于 2023-5-22 01:02
是的每次要重新在git提交,刷新也有点延迟,但也还好,不是挺麻烦

好的,谢谢大佬{:5_106:}

小伤口 发表于 2023-5-22 01:06:53

大佬教程也太详细了吧!!!
排版也好好看哦~{:10_288:}
之前我也在GitHub上搭过博客,还给他用了域名:xiaoshangkou.com{:10_278:}
里面还可以放一些自己写的静态页面,或者静态小游戏{:10_340:}
就是放多了卡的很{:10_293:}
如果鱼油觉得GitHub上访问太慢,也可以试试用国内码云搭建{:10_323:}

小伤口 发表于 2023-5-22 01:08:09

isdkz 发表于 2023-5-22 01:04
好的,谢谢大佬

不是大佬。共同学习{:10_254:}

Twilight6 发表于 2023-5-22 11:41:24

isdkz 发表于 2023-5-22 00:33
静态博客是不是更新内容挺麻烦的?


确实,不过有人做了个 Hexo 的后台面板 Qexo,配置 GitHub 密匙,在面板中修改创建会自动 Push 到仓库

有国内域名可以直接部署的 Vercel 上,没有域名就需要开“代理”才能访问面板,在面板中可以更改文章等,方便了好多




Twilight6 发表于 2023-5-22 11:48:47

isdkz 发表于 2023-5-22 00:33
静态博客是不是更新内容挺麻烦的?


前面的评论审核了,回头你再来看吧,只要把 .md 文件放置到 _post 文件夹下

hexo generate 时就会自动构建成 html 了,主要就是本地需要 git

可以搭建一个本地的 Qexo 控制面板,配置好了就可以类似 WordPress 有后台管理就方便多了

isdkz 发表于 2023-5-22 11:50:25

Twilight6 发表于 2023-5-22 11:48
前面的评论审核了,回头你再来看吧,只要把 .md 文件放置到 _post 文件夹下

hexo generate 时就会自 ...

好的,谢谢大佬{:5_106:}
页: 1 [2] 3 4 5 6
查看完整版本: 【个人博客搭建】Hexo + Github + Netlify 静态个人博客搭建(无需购买服务器)