Skip to content

GitHub Setup Guide

GitHub is a website where people store and share code projects. If Git tracks your changes locally (like a save history on your computer), GitHub is where that history lives in the cloud — backed up, shareable, and accessible from anywhere.

As you build with AI, you’ll create prompts, skills, agents, and project files that become the foundation of your workflows. GitHub is where those files live in the cloud — backed up, versioned, and accessible from any machine. Think of it as your portfolio and safety net in one place. Your files are stored in repositories (project folders that Git tracks), and you work with them by cloning — making a local copy on your computer.

This guide walks you through creating a GitHub account, creating your first repository, and cloning it to your computer.

  1. Go to github.com
  2. Click Sign up
  3. Follow the prompts to create your account
  4. Verify your email address

Already have an account and a repository? Skip to step 3.

  1. From GitHub, click the + button (top-right corner) → New repository
  2. Enter a repository name (e.g., my-ai-projects)
  3. Add an optional description
  4. Select Private (recommended for personal work)
  5. Check Add a README file
  6. Click Create repository

You’ll land on your new repository’s page with a README file. The URL in your browser (e.g., https://github.com/your-username/my-ai-projects) is what you’ll use to clone it in the next step.

Use your code editor to download (clone) repositories from GitHub.

  1. Open the Command Palette (Cmd/Ctrl + Shift + P)
  2. Type Git: Clone
  3. Paste the repository URL (e.g., https://github.com/username/project-name.git)
  4. Choose a local folder location
  5. Open the cloned repository when prompted

After cloning, confirm the repository is on your machine:

  1. Check the sidebar in your editor — you should see the project’s files and folders
  2. Open the integrated terminal (Ctrl + `) and run:
Terminal window
git status

You should see a message like On branch main — this confirms the repository was cloned correctly and Git is tracking it.

Understanding these terms helps when working with Claude Code.

A commit saves a snapshot of your changes with a message describing what you did. Think of it as a save point you can return to.

Push uploads your local commits to GitHub. Until you push, your changes only exist on your computer.

Pull downloads the latest changes from GitHub to your local copy. Do this before starting work to stay in sync.

Before committing, you stage files to indicate which changes to include. You can commit some changes while leaving others for later.

Once you have Claude Code installed, you can perform Git operations by asking Claude in natural language:

  • “Commit my changes with a descriptive message”
  • “Push my commits to GitHub”
  • “Pull the latest changes”
  • “Show me what files have changed”

Claude Code handles the Git commands for you.

Can’t clone the repository?

  • Verify you have access to the repository
  • Check that the URL is correct
  • Make sure you’re signed into GitHub in your editor

Authentication issues?

  • Your editor may prompt you to sign into GitHub
  • Follow the browser authentication flow when prompted
Ask AI for help

If you’re stuck, paste this into ChatGPT, Claude, or Gemini:

I’m trying to clone a GitHub repository in [Cursor / VS Code] on [Mac / Windows] and getting this error: [paste the error message]. I have Git installed and a GitHub account. What should I try?

## 4. Install GitHub CLI (Optional)

The GitHub CLI (gh) lets you manage pull requests, issues, and repos from your terminal — no browser needed.

Terminal window
brew install gh
Terminal window
winget install --id GitHub.cli
Terminal window
sudo apt install gh

For other Linux distributions, see the official install instructions.

Terminal window
gh auth login

Follow the browser prompts to connect your GitHub account.

Terminal window
gh --version

Official docs: GitHub CLI manual

  • Try cloning a public repository to practice the workflow