My new Github page isn't showing up

安稳与你 提交于 2019-12-02 21:53:20

Rename your project name to yourusername@github.com.which mention in the document

This repository must use the username/username.github.io naming scheme.

Edit:

You can only use your own account name for a User or Org Pages repository. A repository like joe/bob.github.io will not build Pages.

I'm not sure if the site just needed some time to show up, but I was getting a 404 error after pushing my master branch... Then I changed my 'theme' in the repo's settings. All of a sudden it started working! A file called config.yml appeared with the theme metadata.

If you have the correct repository name and you still get a 404 error a solution might be to push to the repository.

This is what worked for me. After the push it showed up instantly.

Name your repository correctly, as stated in the first step:

Head over to GitHub and create a new repository named username.github.io, where username is your username (or organization name) on GitHub.

gmc

I had the same problem. I fixed it by going to the Settings for the repository and changing the name of the Repository to username.github.io

Kshitij Bajracharya

In my case I had the correct repository name and still got a 404 error. Then I found this answer, so I made a change and pushed again. This time the changes from my first push showed up. So I waited for a while and then few minutes later, the changes from my second pushed showed up. It might just be the case that changes are not visible instantaneously.

For me the second commit directly shown my Github page. This is very use.

Turns out I had an error in my html file "No newline at end of file". Once I fixed this problem and did another Commit and Push, it worked.

Try to push an empty commit and refresh the page. It should work.

git commit --allow-empty -m "Trigger rebuild"
git push

I had the same problem. I think first you need to check out if YOUR Github Pages have been enabled. This you can check out from "setting". Then change whatever html web site from"github.com/username/repo1/repo2/repo3.../blob/master/file.html"

to "username.github.io/repo1/repo2/repo3.../file.html" .

Then have a try. Good luck.

In my case, my page repository uses the username/username.github.io naming scheme, but still cannot work.

I just clone the repository to local, and new a push_test.txt file and push it to the repository, and then https://username.github.io works.

Use the GitHub user name in the repository name first part. Wait 2 minutes after adding your age. Use google webmaster search console to verify the page you created in GitHub pages

.

rahul-inspired-iosdeveloper.github.io

The solution that solved the 404 error page was to change the Branch from Master to gt-pages

In the case you have followed everything told in the steps such as : Repository name should be username.github.io

The main thing is you must add READ.md file to your repository. For sure your website will show up.

I had same issue with Angular app. I forgot to make repo public :) Even tho i didn't use the username/username.github.io repo naming scheme it worked at <username>.github.io/<repo-name>.

My page was working, but then I tried to connect it to Heroku which led to a 404 error. After switching back to the original, I still got the error. I got around this by going in the settings of the repo and actually changing the name.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!