为什么我的帖子在使用GIT推送后没有发表?

发布于 2025-02-06 04:48:24 字数 428 浏览 3 评论 0原文

这里有一个完整的假人...

所以,我们在Github上托管了一个网站,我们使用了Jekyll。现在,一切正常,但是几天前,在推出新帖子之后,我们在网站上什么也没得到……

通常,我们会尽可能多地做:

git add .
git commit -m "initial commit"
git push

一切正常。

在运行git状态后,这就是我们得到的:

On branch master
Your branch is up to date with 'origin/master'
nothing to commit, working tree clean

我们以前收到了相同的消息,因此唯一的更改基本上是网站上没有出现的帖子:(

请帮助!

谢谢!

A complete dummy here...

So, we have a website hosted on Github, and we used Jekyll. Now, everything was working just fine, however, a couple of days ago after pushing new posts we get nothing on the website...

Usually, we do it as following:

git add .
git commit -m "initial commit"
git push

And everything works fine.

After running git status, this is what we get:

On branch master
Your branch is up to date with 'origin/master'
nothing to commit, working tree clean

We got the same message before, so the only change is basically that the posts are not showing up on the website :(

Please help!

Thank you!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

ら栖息 2025-02-13 04:48:25

那里
请检查它..

  1. 您是否使用github页面?

  2. 您想要什么部署样式

“从github动作或分支部署”

  1. 检查当前分支

https://i.sstatic.net/f0bx0wzv.png“ alt =“ exploy源分支”>

  1. 检查管道日志
  • 可能构建日志

there
please check it..

  1. Are you use GitHub pages?

  2. What do u want deploy style

Deploy from GitHub Action or Branch

  1. check current branch

Deploy source branch

  1. check pipeline log
  • maybe build log
眼眸印温柔 2025-02-13 04:48:24

最近面临类似的问题。我的GitHub网站不再显示新帖子。我在本地创建帖子,然后使用Visual Studio代码将其推向GitHub。修复了我的问题,通过在“ _config.yml”文件中制作“编码:UTF-8”大写(之前是“编码:UTF-8”)。推动此更改后,正确显示了新帖子。

更新:最近也注意到,帖子时间戳可能是他们不出现的原因。将需要检查将哪个时区应用于GitHub网站,并将其与我自己的时间进行比较。

Recently faced a similar issue. New posts were no more shown on my GitHub web site. I create posts locally and push them to GitHub using Visual Studio Code. Fixed my issue by making "encoding: UTF-8" uppercase in "_config.yml" file (was "encoding: utf-8" before). Once this change was pushed, new posts were shown correctly.

Update: recently noticed as well that timestamp of posts may be the reason for them to not show up. Will need to check which timezone is applied to GitHub web site and compare it with my own.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文