Github Page Notes + 404 Fix

There is always way too many options to host a website, free or paid. Among the free options there are often catches for the “free” hosting, usually involve injection of ads in the site, resulting in rather unprofessional look. I found that Github Site seems to have the right balance with the only catch being the fixed domain name being username.github.io, which is done by many other “free” hosting anyway.

There’s the notes on the steps I think would be handy each time you have to create a new GitHub Site:

  1. Decide what the username suitable, give the fact that username.github.io will be the address of the site.
  2. (Optional) create username@yourdomainname.com alias with your email services provider. Instead of a new mailbox, mails sending to all alias will end up in your main mailbox to saving time and cost to manage. Alternatively, if you don’t have a domain name, open a mailbox with Gmail, Hotmail, etc and setup forwarding would work nearly the same way.
  3. Create a public repository name username.github.io. All CLI, Github Desktop or Bitbucket would works, the website will be public anyway, don’t waste the private repo quota.
  4. Add the website file, commits the adding and push the changes to the remote repo.
  5. Wait a few minutes.
  6. Verify the site by visiting username.github.io.
  7. Profit!

In case that website is showing where “404 There isn’t a GitHub Pages site here.” show up and being consistence every after a few minutes of waiting, as asked on Stack Overflow. Like this:

Screen Shot 2019-01-29 at 16.30.51.png
  • Try updating (or creating) a README.md
  • commit
  • push

Hope this note help me and help you in the future 🙂