Hosting a Website on GitHub using the GitHub desktop app.
1. Create a GitHub Account.
2. Download and Install GitHub Desktop App:
3. Create a new GitHub Project:
Create a new repository in your GitHub application. Name it ‘project-name.github.io’ Note the folder your repository saves in. Check the “Push to GitHub?” box.
4. Copy your files to the new repository folder:
Move your website’s files into the folder.
Note: The homepage HTML file must be called “index.html,” and it must exist in the top-level directory.
5. Commit to Master:
In the GitHub application, you should see your files in the left column, make sure they are all checked. Enter a message “initial commit” in the text box called “commit summary,” then click the commit button.
6. Publish your website:
Click the “Publish repo” button in the top right corner. Give it a while, then check project-name.github.io. Your website should be there.
7. Share your Website:
The last step is to get excited and check out your website in your browser! Surf on over to: https://[projectname].github.io. Your website should appear before your very eyes!