Step 1
Go to github.com. Create an account or Sign in.
Step 2
Download Desktop Git here: https://desktop.github.com/ and login with your github.com account.
Step 3
On github.com, create a new repository
Name your repository [username].github.io
Step 4
After the repository is created, clone the repo to your local. Enter the repository, click Code, Open with GitHub Desktop.
Step 5
Open GitHub Desktop. Click current repository on the top left.
Select your [username].github.io repository. Click Show in Explorer. New window should be opened.
Step 6
Copy and paste your html files to the github window. Rename the front page to index.html.
Step 7
Go to Git Desktop. There should be new files on the left bar. Enter Summary: “initial commit”. Click ‘Commit to main’.
Click ‘Publish’ on the right.
Step 8
Back to github.com, there should be new files added on the page.
Go to Settings.
Find “Github pages” on the page. Branch: “main” and select “/ (root)”. Save.
Step 9
Check out the Danger Zone.
Make sure the visibility is on public.
Step 10
Open https://[yourusername].github.io
Note:
GitHub Pages doesn’t work on hosting php file. Only static html page.
Leave a Reply