How to host a website on GitHub | Free hosting in 2021




How to host a website

in this blog I'm going to tell you that how you can publish your front-end static website on GitHub for free along with the SSL certificate. So for that hosting server let me browse the GitHub website
 and then enter. And  hosting server after that we will come to this GitHub website homepage and for hosting your front end static website just click on the new repositories and then give it some name

like Simple web So this  new repo  Just give it a short description like sample website for me And then this will be public and then tick the add a readme file.

And after that, just click create repo So now the new repo has been created. So our next work is to click add file and  add your code or you can write your code by clicking

create a new file, but I have already created the code. So I so need to upload those files. So click on upload files.

then choose your files. I have created those files in portfolio main So let me select all the files and click open here. You can see that I have uploading total 4 files which has been uploading one by one. So let's scroll down.

And here are all the files has been uploaded. You can also add the descriptions and

 you can also create a new branch  to update website like you can update them after the end But in my case I upload this to maon branch So let's click on commit changes so I have the successfully uploaded all the codes for my website, so simply click on setting, And after that,

just scroll down. You can also edit template or you can also add an image for social media preview. in my case I have blank this space. So let's scroll down. And here you can see a page like GitHub page.

So simply click on this. And after that, you have to Simply select the main branch. And click on Save.

1. Buy a domain name


So let's wait for some time and after some time, you will see hosting server this as a green text after refreshing. So simply let me click on this link. So, it will take some time so wait for some time when this text  hosting server will be green. So, let me paste this link and enter And simply scroll down and refresh now here

2. Select a hosting provider and a hosting plan

you can see that this is green text and our website is successfully published.So let me click on this link and now you can say that I have successfully published my  hosting server website which is a front end static website.


إرسال تعليق

Post a Comment (0)

أحدث أقدم