# Step 1: Make a GitHub account and your first private repo

> Pagebee Academy, part 1 (Set up). 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.

## 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](https://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](https://brew.sh):

```
brew install gh
```

6. On Windows, use winget instead:

```
winget 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 push` just works.

```
gh auth login
```

8. Make a folder for your code and clone the repo into it. Swap in your username and repo name.

```
mkdir -p ~/code && cd ~/code
gh repo clone your-username/tally-app
cd tally-app
```


## Paste into Claude Code

```text
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.

## The trap: Letting your code live inside an app builder

Lovable, Bolt and Replit can sync to GitHub, but the app still runs on their platform and their pricing. Start in your own repo and the platform is always optional. And check **Private** before you click Create: a public repo with an API key in it gets found within minutes.

## 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.

## Sources

- [GitHub: creating an account](https://docs.github.com/en/get-started/start-your-journey/creating-an-account-on-github)
- [GitHub: configuring two-factor authentication](https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication)
- [GitHub: creating a new repository](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-new-repository)
- [GitHub's plans](https://docs.github.com/en/get-started/learning-about-github/githubs-plans)
- [GitHub CLI](https://cli.github.com/)

Checked 24 November 2026. https://pagebee.ai/academy/github
