What is GitHub?
(Skip to the steps if you know what Github is)
Steps to host your site on GitHub:
Create a GitHub account:
-The most important step. Github Site
Create New Repository:
-After signing up click on create a new repository.
Then name that repository, remember that your web URL will have the same name as of your repository name and choose who can see your repository (public and private). Then check the box Initialize this repository with README.
After creating the repository:
-Select branch and create a gh-pages branch.
After that prepare your files that you want to upload and rename your main HTML page as index.html. Now click on upload files and select your files. Also, remember to commit a message that describes what you are uploading. Then click on commit changes.
Change some settings:
-At repository pages, click on settings and scroll down to the Github pages section. Change none to gh-pages branch by clicking on dropdown and click on save changes. And then you will see the link of your site.
That’s it. You have just uploaded your site on GitHub. You can share the link of your site to your peers, if you have made it public.