简体   繁体   English

为什么 GitHub 页面没有反映我在本地所做的更改

[英]Why GitHub page does not reflect the changes I made locally

When I use Git to push files to GitHub, command line shows it has been pushed successfully, but why the GitHub page does not reflect the commit?当我使用Git推送文件到GitHub时,命令行显示已经推送成功,但是为什么GitHub页面没有反映提交?

我的命令行截图

What I use is just 3 simple command.我使用的只是 3 个简单的命令。

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

GitHubPages has defined naming standards for the repositories serving content for web pages. GitHubPages 为为网页提供内容的存储库定义了命名标准。

https://github.com/<OrgName>/<orgname>.github.io

For Example: https://github.com/Sauceforge/sauceforge.github.io is served at http://sauceforge.github.io例如: https : //github.com/Sauceforge/sauceforge.github.io位于http://sauceforge.github.io

When you push your commit, GHPages copies your repository to another internal staging where where Jekyll compiles it makes it available for hosting.当你推送你的提交时,GHPages 将你的存储库复制到另一个内部 staging,在那里 Jekyll 编译它使其可用于托管。 This process usually takes a few minutes.这个过程通常需要几分钟。 If the compilation process fails for some reason you will be sent an email.如果编译过程由于某种原因失败,您将收到一封电子邮件。

Clicking the Environments link will also show you an activity log.单击环境 链接还将显示活动日志。

The files actually serving your site are not accessible directly.无法直接访问实际为您的站点提供服务的文件。

If you're talking about the page that greets you when you visit a github repo on github.com it's because you need a README.md in the root directory of your project.如果您正在谈论在 github.com 上访问 github 存储库时向您致意的页面,那是因为您需要在项目的根目录中有一个README.md

Oh and you have to push the changes to the remote master branch哦,您必须push更改push送到远程master分支

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在本地对文件夹结构进行了更改,如何在 git/github 中准确反映这些? - Made changes to folder structure locally, how to reflect these exactly in git/github? 为什么我的github仓库fork无法显示我所做的更改已被接受? - Why does my github repository fork not shows the changes I made that were accepted? 如何在本地取消一次提交中所做的所有更改? - How can I locally cancel all the changes made in a commit? 如何让GitHub正确地反映出我在本地更改了分支的名称? - How do I make GitHub properly reflect that I've locally changed the name of a branch? GitHub:我能看看我是否对fork进行了更改? - GitHub: Can I see whether I made changes to a fork? 如果我在在线GitHub编辑器上进行了更改,如何从分支中获取? - How to fetch from a branch, if I made changes on online GitHub editor? 为什么git通过删除然后立即将其重新添加来跟踪我从未进行的更改? - Why does git track changes I never made by making a deletion then immediately adding it back? 当我在本地仓库中明确进行更改时,为什么 git 告诉我“我的分支是最新的”? - Why does git tell me “my branch is up to date” when I clearly made changes in local repo? 合并主服务器中所做的更改,同时将本地更改保存在git中 - Merge the changes made in the master while keeping the changes made locally in git 如何推送我从 github 克隆的存储库并对我的 github 存储库进行更改? - How do I push the repository I cloned from github and made changes to it to my github repo?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM