Skip to main content
Your website works on your computer. Let’s put it on the internet — for free.
Your website address will be yourusername.github.io/my-website — replace yourusername with your GitHub username.
1

Create a GitHub repository and push your code

Make sure Gemini CLI is running in your my-website folder. Then say or type this prompt:
Say this or copy this prompt
The repository must be public for free GitHub Pages hosting. This is standard practice for personal websites — your code will be visible to others, just like most websites on the internet.
2

Enable GitHub Pages

Say or type this prompt into Gemini CLI:
Say this or copy this prompt
Replace [your-username] with your actual GitHub username.
3

Wait and verify

GitHub needs 1–3 minutes to build and publish your website.
  1. Wait about 2 minutes
  2. Open your browser and go to: https://yourusername.github.io/my-website
  3. Replace yourusername with your GitHub username
Seeing a 404 page? Don’t worry — wait another minute and refresh. First deployments can take up to 3 minutes.
You can also ask Gemini CLI to check for you:
Say this or copy this prompt
4

Verify on GitHub

  1. Go to your repository on GitHub
  2. Look for a green checkmark next to the latest commit — this means the deployment succeeded
  3. Go to SettingsPages to see your live website URL
  1. Go to github.com/yourusername/my-website
  2. Click Settings (gear icon tab)
  3. Click Pages in the left sidebar
  4. Your live URL is shown at the top: https://yourusername.github.io/my-website

Troubleshooting

  • 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.html file in the root (not inside a subfolder)
  • Go to Settings → Pages and make sure the source is set to the main branch and / (root)
  • Make sure the repository is public, not private
  • Check your spelling — the URL is case-sensitive
  • Run gh repo list in your terminal to see your repositories
  • 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
Your website is live! Share the link with friends, family, and on LinkedIn. You built this!
Want to keep improving your website? Head to Keep going for ideas, update instructions, and next steps.