'How can I view my file in github repository?

In my github repository, I have the file site, and in the course I'm following, when he added site/ it opened for him the HTML page in the folder, but I am not able to do that, it just shows me error, I tried adding .html, its not showing. Can you please help?

Here's what happens



Solution 1:[1]

Looking at your repository, you have two branches:

  • main
  • gh-pages

You have uploaded your site folder and all relevant files on your gh-pages branch.

To see your Github page that you have created in your gh-pages branch, you first must publish it.

Please follow the documentation here.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 tomerpacific