Create a GitHub account
- Go to github.com
- Click Sign up
- Follow the prompts to create your account (the free plan is all you need)
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 Verify it worked — in your terminal, type:You should see a version number like
gemini, and press Enter. Then copy and paste this prompt:Copy this prompt and paste it into Gemini CLI
- What Gemini will do on Windows
- What Gemini will do on macOS
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.
git version 2.x.x.Use Gemini CLI to install GitHub CLI and log in
GitHub CLI (Verify it worked — in your terminal, type:You should see a message confirming you’re logged in to GitHub.
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
Verify Your Setup
Git installed
Git installed
Run
git --version in your terminal. You should see a version number.GitHub CLI installed
GitHub CLI installed
Run
gh --version in your terminal. You should see a version number.Logged in to GitHub
Logged in to GitHub
Run
gh auth status in your terminal. It should say you’re logged in.All set? Head to Build your website — the fun part!