Hosting Website Github
Hosting Website Github
Make sure your project files contain the main file with the name
of “index.html”.
Note: Sometimes after link generation, you have to wait for 3-5 mins to see
your website. It may give an error of this kind, so please be patient.
Reuploading Files
To update your code for the website you can upload files again to the same
repository and your website will be updated. The URL will not change.
1. Login to https://github.com/
2. Then on the left hand side of the page you will find a list of the projects
of yours. So open the project for which you want to update the files
3. Then for uploading files click on Add file option and select upload files
option.
4. After selecting files click on the commit changes button. And then you
can see your new files get updated in the existing repository.
After you have re-uploaded any files, and when you are checking the output,
do a HARD REFRESH OR open the website link in the Incognito tab.
13. If you need to keep an existing website as is, create a new repository
and follow from step 1.