how to host html pages on github from html5up code example
Example 1: how to host your html website on github pages for free
1.You need to push your project on github.
2.Go to Settings>Pages.
3.Select branch.
(You might need an index.html file)
Example 2: deploy html to github pages
# -> Github.com + make public repo
'username.github.io'#, where
# username is your username
# (or organization name).
# CLONE
git clone https://github.com/username/username.github.io
# COMMIT
git add --all
git commit -m "init commit"
# DONE :)
git push -u origin main
# VIEW :)
# Fire up a browser and go to https://username.github.io.