Rename your repository to as explained in the documentation.<yourusername>.github.io
To publish a user site, you must create a repository owned by your user account that's named
.<user>.github.io
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.
Could you add this folder here https://github.com/aharri71/Hogwarts/tree/master/Hogwarts/Admission as your root folder and rename the Admission.html to index.html and then force push to GitHub.
Why do you need to do the above mentioned? - well, GitHub checks for an "index.html" file in the root folder of the branch you set in the settings for GitHub pages and renders it.
Four months ago I have contacted the support and they told me it was a problem on their side, they have temporarily fix it (for the current commit).
Today I tried again
I deleted the gh-pages branch on github
git push origin --delete gh-pages
I deleted the gh-pages branch on local
git branch -D gh-pages
I reinitialized git
git init
I recreated the branch on local
git branch gh-pages
I pushed the gh-pages branch to github
git push origin gh-pages
Works fine, I can finally update my files on the page.
A bit late to the party but I just had this issue and my solution isn't covered by any of the above.
Specifically my issue was the following:
Solution: The issue turned out to be my browser caching the page (despite my having page caching disabled). To fix it I just cleared my cached data from the past hour and that worked instantly.
To clear the cache data in Chrome go to the Chrome menu then .More Tools > Clear Browsing Data
I don't know what caused the caching, this github.pages/custom domain combo is the only thing that has ever caused it for me.
You can use in the URLs of the external elements used by your page (images, scripts, stylesheets) as other answers suggest.https://
But you can do even better by using protocol-relative URLs, like this:
<link rel="stylesheet" type="text/css" href="//msdeep14.github.io/static/css/syntax.css" />
For URLs of resources located on your own domain you can even use host-relative URLs:
<link rel="stylesheet" type="text/css" href="/static/css/syntax.css" />
(but you have to stick to the first form for URLs outside your domain).
Both the above solutions work (since forever) with all browsers. The browser compute the complete URLs using the URL of the current page as base. This way, when the page is loaded using , the external resources are also loaded using HTTP and when it is loaded using HTTP, the resources are also loaded using HTTPS and the browsers do not display annoying warnings.HTTPS
Try this
<script src="script.js" type="text/javascript"></script>
Use closing tag.script
For more check this answer.