Part 1, Set up · Step 1
Make a GitHub account and your first private repo
Your code lives in a repo you own, on GitHub, from the first line. Every tool in this guide can read it, and you can take it anywhere.
- Time
- 15 minutes
- Cost
- Free
Rather not use the terminal? Pagebee Builder, a free Mac app, does this part for you.Get Pagebee Builder
Why it matters
A repo (short for repository) is a folder that remembers every change ever made to it, who made it and why. When your code lives in your own GitHub repo, you own it outright. You can open it in any editor, hand it to any agent or developer, and move it to any host. Nothing about your product is trapped inside someone else's app builder.
It's also your safety net. When an agent makes a mess, and it will, you can see exactly what changed and put it back.
GitHub Free gives you unlimited private repos. You won't need to pay GitHub for a long time.
Do this
- 1
Go to github.com/signup. Sign up with your email, or with Continue with Google. Pick a username you'd be happy for a future co-founder to see, then verify your email.
- 2
Turn on two-factor authentication: your profile picture (top right), then Settings, Password and authentication, Enable two-factor authentication. Choose an authenticator app and scan the QR code.
- 3
When GitHub shows your recovery codes, click Download and keep the file somewhere that isn't your laptop, like a password manager. Then click I have saved my recovery codes.
- 4
Click the + at the top right, then New repository. Give it a short name in lowercase with dashes (for example
tally-app), choose Private, tick Add a README file, and click Create repository. - 5
Install the GitHub command line tool,
gh, so Claude Code can push and open pull requests for you. On a Mac with Homebrew:Terminalbrew install gh - 6
On Windows, use winget instead:
PowerShellwinget install --id GitHub.cli --source winget - 7
Sign in from the terminal. Choose GitHub.com, then HTTPS, and say yes when it asks to authenticate Git with your GitHub credentials. After this,
git pushjust works.Terminalgh auth login - 8
Make a folder for your code and clone the repo into it. Swap in your username and repo name.
Terminalmkdir -p ~/code && cd ~/code gh repo clone your-username/tally-app cd tally-app
This is a new, empty repo for a web app. Add a .gitignore suitable for a Node.js and Next.js project, making sure .env files and node_modules are ignored. Then commit it with a clear message and push it to GitHub.
You'll paste this once Claude Code is installed in the next step. It's a small first job that proves the whole loop works: the agent writes a file, commits it, and you see it on GitHub.
Using something else
GitLab and Bitbucket both work the same way, and Claude Code doesn't mind which you use. We pick GitHub because every other tool in this guide connects to it first.