How to host a static website easily in Github
GitHub, Inc. is a United States-based global company that provides hosting for software development and version control using Git. It has been a subsidiary of Microsoft since 2018.
Its very simple , all you have to do is first create a GitHub account using your email id
Next,we have to sign-in, fill our personal details and verify our email-id. After finishing setup we have to create a new repository to upload our project or website files.
Now click on the drop-down arrow near plus symbol, a drop down menu will appear .
In the drop down menu click on New repository. It will take you to the page where a new repository is created.
Here enter your website name and select Public. Your website URL will be in the format of
Then click create repository, it will redirect to another page, here as of now we don’t have any work here, just click on
uploading an existing file
Now drag and drop or upload your project files or website files.
Most importantly the websites first page or home page must be named as index.html.
Then click on Commit changes button at the bottom. Now you have successfully uploaded your files into GitHub.
Now click on Settings tab. Scroll down to GitHub Pages section.
In the Source section click on the dropdown (None).
Select master branch and the page will refresh. Again go to GitHub Pages section.
You will see a link as I mentioned earlier in this article.
Click on the link and view your website hosted on GitHub😊😊.