Skip to main content
GitHub is a free website where your code will live — and where your website will be hosted for free. Let’s get you set up.
1

Create a GitHub account

  1. Go to github.com
  2. Click Sign up
  3. Follow the prompts to create your account (the free plan is all you need)
Choose your username carefully! It becomes part of your website address: yourusername.github.io. Pick something professional or memorable.
2

Use Gemini CLI to install git

Git is a tool that tracks changes to your code. Instead of installing it manually, let’s ask Gemini CLI to do it for us!Open your terminal, type gemini, and press Enter. Then copy and paste this prompt:
Copy this prompt and paste it into Gemini CLI
I need to install git on my computer. Please:
1. Check if git is already installed
2. If not, download and install it for me
3. After installation, verify it works by running "git --version"
4. Configure git with a default user name and email — ask me what
   name and email to use

I am a complete beginner, so please explain each step as you go.
Gemini CLI will likely download git from git-scm.com and run the installer for you. It may ask you to confirm a few installation prompts. After installation, it will set up your name and email for git.
Verify it worked — in your terminal, type:
git --version
You should see a version number like git version 2.x.x.
3

Use Gemini CLI to install GitHub CLI and log in

GitHub CLI (gh) is a tool that lets you interact with GitHub from your terminal. Gemini CLI will install it and help you log in.In Gemini CLI, copy and paste this prompt:
Copy this prompt and paste it into Gemini CLI
Now I need to install the GitHub CLI tool (called "gh") and log in
to my GitHub account. Please:
1. Install the GitHub CLI on my computer
2. Help me log in to my GitHub account using "gh auth login"
3. Choose the browser-based login method so I can sign in easily
4. After login, verify it works by running "gh auth status"

I am a complete beginner, so please guide me through each step.
Verify it worked — in your terminal, type:
gh auth status
You should see a message confirming you’re logged in to GitHub.
GitHub Pages is free but requires public repositories. This means your website code will be visible to others. This is completely normal for personal websites — most websites on the internet have publicly visible source code.

Verify Your Setup

Run git --version in your terminal. You should see a version number.
Run gh --version in your terminal. You should see a version number.
Run gh auth status in your terminal. It should say you’re logged in.
All set? Head to Build your website — the fun part!