GitHub page from any repository
Once upon a time, we all thought that a static page could only be hosted on GitHub at:
https://username.github.io
I don’t know why, but I didn’t believe it. I patiently clicked and searched for another way. It turned out that you can host a page in any repository, after the character like:
/
For example
https://username.github.io/yourrepository
Find out how to do it in a few simple steps ;-)
- Go to the repository you’d like to use for your static page
- Click on settings
- Go all the way down to GitHub pages
- Change the settings: from none to master or main (depending on what you have) or to whatever branch you want to put the page in
- SAVE
- Go back to the main repository page
- There will be Environments section on the right side - GitHub pages will be marked as active
- Click it - it will take you to the deployments/acitvity log page
- Click on view deployment
- You’ve done it!
Warning: If you see 404 error, just add index.md to your repository. Should work!