Important Note
For your personal GitHub Pages site, your repository MUST be named exactly:
Replace "username" with your actual GitHub username. This is a requirement from GitHub for personal sites.
Step-by-Step Guide
Create a GitHub Account
If you don't have one already, go to github.com and sign up for a free account.
Create a New Repository
Click the "+" icon in the top right corner and select "New repository".
Repository Settings
Make sure to:
- Set the repository to Public (required for free GitHub Pages)
- Initialize with a README file (optional but recommended)
Upload Your Website Files
Add your HTML, CSS, JavaScript, and other assets to the repository. You can:
- Use the web interface to upload files
- Use Git commands to push files from your computer
- Use GitHub Desktop for a graphical interface
Enable GitHub Pages
Go to your repository Settings → Pages → Select "main" branch as source → Click Save.
Wait for Deployment
It may take a few minutes for your site to be published. You can check the progress in the "Pages" section of your repository settings.
Visit Your Live Website
Once deployed, your website will be available at:
Remember to replace "username" with your actual GitHub username.