How to host static site on GitHub pages

Taimoor Sattar

Github is the server way for a version control system using Git, tracks your files, and helps coordinate on project files among a group of people.

You can use GitHub pages to host your static files. To host on GitHub pages, it looks for file index.html in the root of the repository / or /docs.

Host projects on Github Pages

Go to the setting tab of the GitHub repository and scroll to the GitHub Pages section. Select the appropriate folder and hit save. After, the website page (URL) appears where your project is hosted. Initially, It may take 5-10 min for your static website to appear on the URL.

About the Author

Written by Taimoor Sattar I'm Taimoor Sattar, full-stack developer. I've experience to develop websites in JavaScript, Node and CSS. But, better I am a problem solver. I used to break down large chunck of problem into small puzzle pieces. You should follow them on Twitter. You can contact me on this page.