Hosted directly from your GitHub repository. Just edit, push, and your changes are live.GitHub now can host your static projects to their servers, and that's for free. You just have to enable the GitHub pages for your repositories. You can forward GitHub's default URL to your custom domain/sub-domain. Let's see how we can do that.
Login to your GitHub account. create a new repository with name "(your GitHub username)
Bingo!! you just hosted your first page on GitHub. (If it does not reflect the changes wait for some time, GitHub might be taking some time to publish it)
GitHub gives the option to use it's prebuilt theme to the pages. If you don't want to create a custom static site then go to settings of the repository. Scroll down to Github Pages, click on choose theme, then select an appropriate theme and edit necessary text.
Now, if you want to host your another static project, create a repository, add files to it and go to settings, scroll down to GitHub Pages, and on the source select 'master branch'. Open new tab on browser and type : (your GitHub username).github.io/repository-name
If you own a domain and want to forward this github page site to your own domain/sub-domain, just open the (your GitHub username)