为什么我的GitHub页面不更新其内容? [英] Why does my GitHub page do not update its content?
问题描述
我一直在关注说明
到目前为止,我已经创建了本地存储库并将其推送到GitHub,但是,无论我做了什么更改,我都可以在GitHub的存储库中看到它,但在GitHub页面上没有 .那怎么可能?
So far I've created the local repo and pushed it to GitHub, but, whatever change I do, I can see it in my repo at GitHub but not in my GitHub page. How is that possible?
推荐答案
有时我也遇到这种情况:创建并推送gh-pages
后,GitHub Pages页面丢失或未更新.即使我将更多更改提交到分支,然后再次推送它,它也不会在GitHub页面上更新.
Sometimes this happens to me too: after creating and pushing the gh-pages
, the GitHub Pages page is missing or not getting updated. Even if I commit more changes to the branch and push it again, it won't update on GitHub pages.
如果我没记错的话,可以通过从服务器删除分支并再次推送分支来解决此问题:
If I remember correctly, I solve this by deleting the branch from the server and pushing it again:
git push origin :gh-pages
git push origin gh-pages
我可能必须添加一些虚拟提交,然后再次按下以触发更新,我记不清了...
I might have to add some dummy commits and push again to trigger the update, I don't remember exactly...
这篇关于为什么我的GitHub页面不更新其内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!