Search code examples
githubgithub-pages

How to replace an index.html file with another index.html stored in a repository in Github?


currently my "Hello World" index file, in the master branch in github.com, points to the url address: https://user.github.io/

I have committed and push a new folder called the Repository Folder which contains a different index.html file and a .css file. How do I change the reference from the old "Hello World" file to the new index.html file in the Repository folder and it points to the url address: https://user.github.io?


Solution

  • You can go to your repository setting for the repository which has GitHub Pages configured and change your branch or file path within a code for a particular branch from there.

    enter image description here