NewAI Content Creation is now live in Early Access
Turning Point Training Instituteby Training Center
Skip to content
0%
Claude Code FundamentalsLesson 4 of 9
3 min readBeginner

After this lesson you can connect one practice repository and accept or reject one proposed change. Safety: use a new repository with no private data, and give access to that repository only where the screen lets you choose. Before you start: the app is installed and the Code tab opens.

GitHub is a free website where your code projects live safely online — like Google Drive, but built for code. Claude Code uses it to save its work on a branch (a safe copy) that you review before keeping.

What you'll get: a GitHub account, your first repository and Claude Code connected to it — with a first prompt ready to try the connection out.

Set it up in four steps

1

Create a free GitHub account

Go to github.com/signup, pick a username, email and password, and verify your email.

2

Create your first project (a “repository”)

Go to github.com/new, name it (e.g. my-first-app), tick Add a README, and click Create repository.

3

Connect GitHub in Claude

Open Settings → Connectors, find GitHub, click Connect, and approve access to the practice repository only, if you can choose.

4

Point Claude Code at your repo

Start a new session and choose the repository you just made. Claude now sees your project's files.

Your first request with the repo connected

With the repository selected in your session, try this as-is (swap in your repo's name):

Example prompt

This is my first session in this repository (my-first-app). Read the README, list the files you can see, and explain in plain words what this project contains. Then suggest one small first improvement — for example a better README — and wait for my OK before changing anything.

Want issues and pull requests too?

Add the GitHub MCP connector — see the MCP lesson. For your first project, the basic connection above is enough.

If GitHub doesn't appear: update the Claude app and sign in again with your claude.ai account (not an API key).

10-minute practice. Run the four steps above end to end: account, my-first-app repository, connection in Settings → Connectors, and a new session pointed at the repo. Then paste the example prompt. When Claude proposes its small improvement, read it first, then accept or reject it on the branch — that propose → review → accept cycle is exactly how you'll work from now on.

Finished when

The practice repository is connected, you read one proposed change on its branch, and you accepted or rejected it with a reason.

Common errors and recovery

  • Access to all repositories was granted. Review the connection in your GitHub settings and reduce or remove it.
  • The change is already on the main version. Do not continue; ask Claude to show the history, and restore the earlier version with help if you need it.
  • Your screen differs. Connection screens change. Follow the official page below.

Check yourself

  1. The change corrects a spelling mistake in README, as you asked. Accept: it matches the request and nothing else changed.
  2. The change corrects the spelling and adds a file that sends data to a website. Reject: the second part was not requested. "The spelling is right" is tempting, but a change is accepted as a whole.

Sources

Opened 2026-11-25.