Your website address will be
yourusername.github.io/my-website — replace yourusername with your GitHub username.Create a GitHub repository and push your code
Make sure Gemini CLI is running in your
my-website folder. Then copy and paste this prompt:Copy this prompt to create your GitHub repository
Enable GitHub Pages
- Using Gemini CLI
- Manually on GitHub
Copy and paste this prompt into Gemini CLI:Replace
Copy this prompt to enable GitHub Pages
[your-username] with your actual GitHub username.Wait and verify
GitHub needs 1–3 minutes to build and publish your website.
- Wait about 2 minutes
- Open your browser and go to:
https://yourusername.github.io/my-website - Replace
yourusernamewith your GitHub username
Copy this prompt to check deployment status
Verify on GitHub
- Go to your repository on GitHub
- Look for a green checkmark next to the latest commit — this means the deployment succeeded
- Go to Settings → Pages to see your live website URL
How to find your website URL
How to find your website URL
- Go to
github.com/yourusername/my-website - Click Settings (gear icon tab)
- Click Pages in the left sidebar
- Your live URL is shown at the top:
https://yourusername.github.io/my-website
Troubleshooting
I see a 404 error
I see a 404 error
- Wait a few minutes — first deployments take up to 3 minutes
- Make sure the URL is correct:
https://yourusername.github.io/my-website - Check that your repository has an
index.htmlfile in the root (not inside a subfolder) - Go to Settings → Pages and make sure the source is set to the main branch and / (root)
Repository not found
Repository not found
- Make sure the repository is public, not private
- Check your spelling — the URL is case-sensitive
- Run
gh repo listin your terminal to see your repositories
I don't see Pages in Settings
I don't see Pages in Settings
- GitHub Pages is only available for public repositories on the free plan
- If your repository is private, go to Settings → General → Danger Zone → Change visibility to public
Want to keep improving your website? Head to Keep going for ideas, update instructions, and next steps.