GitHub Pages is a service that allows you to host static websites directly from a GitHub repository. Here’s how to set up and use GitHub Pages:
- Navigate to your repository.
- Click on the 'Settings' tab.
- Scroll down to the 'Pages' section.
- Under 'Source', select the branch you want to publish by clicking the drop-don arrow.
- Optionally, select a folder such as root or docs if needed.
- Click the 'Save' button.
- After enabling, GitHub will provide a URL. Visit the provided URL to see your live site by clicking the 'Visit site' button.