[英]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.