Skip to content

Services

GitHub

Keep a copy of your code online, see how it changed over time, and review proposed edits before adding them to the project.

Visit GitHub

Imagine a friend wants to improve the instructions for running your app. On GitHub, the project lives in a repository, a folder with a history of saved changes. Your friend can propose an edit in a pull request for you to read.

Try changing one sentence in a separate branch, a working copy of the project’s history. Open a pull request and compare the old and new wording. Merging it adds the approved edit to the shared version.

When to use it
When your product has more than a few files. Most hosts can put your site online straight from GitHub.
What it costs
Free plan with unlimited public and private repositories, which are code folders with their history. Team is $4 per person a month, as of November 2026.

Save your code on GitHub

Put your product on GitHub so a copy lives online. Then change things on a branch, open a pull request, get a review and merge it into main.

You’ll need

  • A website or app in a folder on your computer.
  • Your AI tool, set up and working in that folder.
  • GitHub account.

Your part

  • Make your GitHub account and sign in.
  • Create the repository and choose Private.
  • Read the review of each change, then press the merge button.

Copy the prompt for these steps

All 7 steps, in one prompt
I’m following “Save your code on GitHub” on BuildLadder.
What the guide says I’ll end up with: Your product is in a private GitHub repository. You know how to change it safely on a branch and merge it into main.
This comes from https://buildladder.com/tools/github#saving-your-code. If you can open web pages, read https://buildladder.com/tools/github.md for the current version. BuildLadder guide, tool, concept, answer and setup pages all work this way: add .md to the address.

How to work with me:
- Go through the steps below in order, one at a time.
- Do what you can yourself in this folder: write code, run commands, check settings. If a service has an official command-line tool, like the Vercel CLI, you can offer to use it. Ask me before you install anything, sign in to anything or spend money.
- When a step needs me, like making an account or clicking in a dashboard, tell me exactly what to do in small steps. Then wait until I say it’s done.
- The actions, checks and fixes in each step were written for me, the reader. Where one says “your AI tool”, that means you, and “Say:” means something I would say to you.
- Never ask me to paste passwords or secret keys into this chat. I type those into the service’s own settings.
- After each step, tell me how to check it worked. Once Git is set up, save a version each time a step works. Then ask if I’m ready for the next one.
- Use plain words. I may never have coded before.

## Step 1 of 7: Create a private repository

This step is mine to do. Walk me through it, one action at a time:
- Go to github.com and sign in. If you don’t have an account, go to github.com/signup and follow the prompts. You’ll be asked to check your email.
- In the upper-right corner, click the plus icon, then New repository.
- Check that Owner shows your own username, not an organization.
- Type a Repository name, like my-site. Use letters, numbers, dashes and dots.
- Choose Private.
- Leave the README, .gitignore and license options off. Your product already has files, and an empty repository takes them without a clash.
- Click Create repository.

It worked when: GitHub shows your empty private repository, with a Quick Setup box that holds its address.

Keep for later: The address in Quick Setup that ends in .git, for “Upload your code with your AI tool”.

If something goes wrong:
- It says the name is already taken. You already have a repository with that name. Pick another name, or open the one you have.
- You already ticked README and created the repository. That’s fine. Tell your AI tool before it uploads, so it gets the README first.

## Step 2 of 7: Upload your code with your AI tool

I made an empty private repository on GitHub for this product. Ask me for its address, the one that ends in .git.

Then, following GitHub’s current docs:
1. Check that .env and any other files with keys are listed in .gitignore. Show me file names only, never key values.
2. If Git isn’t set up in this folder, set it up with main as the branch name. Save a first version (a commit) with a short note.
3. Connect this folder to my repository under the name origin.
4. Push main to origin.

If GitHub needs me to sign in, set up GitHub CLI and run gh auth login, so I can sign in through my browser. Let me do the sign-in myself.

Explain each step in plain words before you run it.

It worked when: Your product’s files show on your repository page on github.com.

Before we move on, check with me:
- Is .env missing from the file list, as it should be?

If something goes wrong:
- The push is rejected. The repository may already have a README. Tell your AI tool: “The push was rejected. Get what’s on GitHub first, then push again. Don’t force it.”
- Git asks for a username and password. Tell your AI tool: “Set up GitHub CLI and run gh auth login, so I can sign in through my browser.”
- You can see .env on GitHub. Make new keys at each service now, because anyone who can see the repository can read the old ones. Then ask your AI tool to remove .env and add it to .gitignore.

## Step 3 of 7: Count your private work on the Leaderboard

This step is optional. Ask me whether I want it, and skip it if I don’t.

This step is mine to do. Walk me through it, one action at a time:
- On GitHub, click your profile picture, then Your profile.
- Above the contribution calendar, click Contribution settings.
- Turn on Private contributions if it’s off.

It worked when: Private contributions is turned on in Contribution settings on your GitHub profile.

## Step 4 of 7: Make a change on a branch

I want to try a change without touching main. The change: a small fix or feature you can see, like a new line of text on the home page.

1. Make a new branch with a short name that says what the change is.
2. Make the change on that branch, and show me how to see it on my computer.
3. When I say it works, save it as a commit with a short note.
4. Push the branch to origin.

Tell me the branch name when you’re done. Don’t merge anything into main.

It worked when: The branch menu on your repository page lists a new branch with your change, and main is unchanged.

If something goes wrong:
- The change went straight onto main. Tell your AI tool: “That went onto main. Move the change to a new branch, and put main back how it was.” Do this before you push.

## Step 5 of 7: Open a pull request

This step is mine to do. Walk me through it, one action at a time:
- On GitHub, go to the main page of your repository.
- In the yellow banner above the file list, click Compare & pull request. If there’s no banner, choose your branch in the branch menu first.
- Check that base is main and compare is your new branch.
- Type a title that says what changed, and a short description of why.
- Click Create pull request.

It worked when: You see a pull request page with your title and a Files changed tab.

Before we move on, check with me:
- Open Files changed. Do you see only the change you asked for?

If something goes wrong:
- Files changed shows things you didn’t ask for. Tell your AI tool: “The pull request has changes I didn’t ask for. Explain each one, and undo the ones we don’t need on this branch.”

## Step 6 of 7: Get the change reviewed

Review the changes on my branch compared with main, like a careful reviewer would.

List anything that could:
- break something that works now
- leak a key or private data
- fail for some visitors, like on a phone or with no internet
- be simpler

Sort them from most to least serious, and explain each one in plain words. Don’t change anything yet. Then ask me which ones to fix. Commit and push each fix to the same branch.

It worked when: Your AI tool lists problems, most serious first, or says that nothing needs fixing.

Before we move on, check with me:
- Do you understand each problem in the list?
- Are the fixes you chose now in the pull request?

If something goes wrong:
- The review lists something you don’t understand. Ask your AI tool: “Explain that problem as if I’ve never coded. What could go wrong for a visitor?”

## Step 7 of 7: Merge it into main

This step is mine to do. Walk me through it, one action at a time:
- Under your repository name, click Pull requests, then open yours.
- Scroll to the bottom and click Merge pull request.
- Click Confirm merge.
- GitHub offers to delete the branch. You can, because its change is now in main.
- Tell your AI tool: “I merged the pull request. Switch to main and get the latest version from origin.”

It worked when: The pull request shows as merged, and main on GitHub has your change.

Before we move on, check with me:
- Did your AI tool say it switched to main?

If something goes wrong:
- You can’t click Merge pull request, because of conflicts. Main changed in the same lines since you made the branch. Tell your AI tool: “My pull request has conflicts. Bring main into my branch, show me each clash, and fix it with me.”

The steps

  • Steps marked AI tool are done by your AI tool when you paste the prompt. The rest are yours.
  • Save a version after every step that works.
  • If a screen looks different from a step, ask your AI tool where the setting moved.
  • Never paste a password or secret key into the chat.
  1. Your code in a private repository

    Create a private repository

    You

    A repository is your product’s home on GitHub. You make an empty one, so your AI tool can fill it with your files.

    1. Go to github.com and sign in. If you don’t have an account, go to github.com/signup and follow the prompts. You’ll be asked to check your email.
    2. In the upper-right corner, click the plus icon, then New repository.
    3. Check that Owner shows your own username, not an organization.
    4. Type a Repository name, like my-site. Use letters, numbers, dashes and dots.
    5. Choose Private.
    6. Leave the README, .gitignore and license options off. Your product already has files, and an empty repository takes them without a clash.
    7. Click Create repository.

    It worked when: GitHub shows your empty private repository, with a Quick Setup box that holds its address.

    Keep: The address in Quick Setup that ends in .git, for “Upload your code with your AI tool”.

    It says the name is already taken.

    You already have a repository with that name. Pick another name, or open the one you have.

    You already ticked README and created the repository.

    That’s fine. Tell your AI tool before it uploads, so it gets the README first.

  2. Upload your code with your AI tool

    AI tool

    Your AI tool saves a first version (Git calls it a commit), connects your folder to GitHub under the name origin, and pushes your files up.

    It worked when: Your product’s files show on your repository page on github.com.

    Check this step
    • Is .env missing from the file list, as it should be?
    The push is rejected.

    The repository may already have a README. Tell your AI tool: “The push was rejected. Get what’s on GitHub first, then push again. Don’t force it.”

    Git asks for a username and password.

    Tell your AI tool: “Set up GitHub CLI and run gh auth login, so I can sign in through my browser.”

    You can see .env on GitHub.

    Make new keys at each service now, because anyone who can see the repository can read the old ones. Then ask your AI tool to remove .env and add it to .gitignore.

  3. Count your private work on the Leaderboard

    YouOptional

    The BuildLadder Leaderboard counts work in a private repository only when your GitHub profile shows private contributions. People then see how many contributions you made each day, never your code. Skip this if you’d rather not show that.

    1. On GitHub, click your profile picture, then Your profile.
    2. Above the contribution calendar, click Contribution settings.
    3. Turn on Private contributions if it’s off.

    It worked when: Private contributions is turned on in Contribution settings on your GitHub profile.

  4. One change, reviewed and merged

    Make a change on a branch

    AI tool

    A branch is a copy of your work where you try a change. Main stays as it was until you merge the change in.

    It worked when: The branch menu on your repository page lists a new branch with your change, and main is unchanged.

    The change went straight onto main.

    Tell your AI tool: “That went onto main. Move the change to a new branch, and put main back how it was.” Do this before you push.

  5. Open a pull request

    You

    A pull request asks to merge your branch into main. It shows every line that changed, so you and a reviewer can check it first.

    1. On GitHub, go to the main page of your repository.
    2. In the yellow banner above the file list, click Compare & pull request. If there’s no banner, choose your branch in the branch menu first.
    3. Check that base is main and compare is your new branch.
    4. Type a title that says what changed, and a short description of why.
    5. Click Create pull request.

    It worked when: You see a pull request page with your title and a Files changed tab.

    Check this step
    • Open Files changed. Do you see only the change you asked for?
    Files changed shows things you didn’t ask for.

    Tell your AI tool: “The pull request has changes I didn’t ask for. Explain each one, and undo the ones we don’t need on this branch.”

  6. Get the change reviewed

    AI tool

    A review is a second look before a change reaches main. Your AI tool can read the whole change and list problems in plain words.

    It worked when: Your AI tool lists problems, most serious first, or says that nothing needs fixing.

    Check this step
    • Do you understand each problem in the list?
    • Are the fixes you chose now in the pull request?
    The review lists something you don’t understand.

    Ask your AI tool: “Explain that problem as if I’ve never coded. What could go wrong for a visitor?”

  7. Merge it into main

    You

    Merging brings the branch’s change into main. If a host puts your site online from main, your change goes online at this moment.

    1. Under your repository name, click Pull requests, then open yours.
    2. Scroll to the bottom and click Merge pull request.
    3. Click Confirm merge.
    4. GitHub offers to delete the branch. You can, because its change is now in main.
    5. Tell your AI tool: “I merged the pull request. Switch to main and get the latest version from origin.”

    It worked when: The pull request shows as merged, and main on GitHub has your change.

    Check this step
    • Did your AI tool say it switched to main?
    You can’t click Merge pull request, because of conflicts.

    Main changed in the same lines since you made the branch. Tell your AI tool: “My pull request has conflicts. Bring main into my branch, show me each clash, and fix it with me.”

Compare GitHub with the other options

Stuck? Try these, in order
  1. Stop asking it to “fix it”. Say exactly what’s wrong.

    Paste this into the same chat. It asks your AI tool to find the problem with you.

    Troubleshooting prompt
    I’m following “GitHub” on BuildLadder and something isn’t working.
    This comes from https://buildladder.com/tools/github. If you can open web pages, read https://buildladder.com/tools/github.md for the current version. BuildLadder guide, tool, concept, answer and setup pages all work this way: add .md to the address.
    
    Ask me which step I’m on, what I tried and what happened, one question at a time. Look at the files in this folder if you can. Then explain the problem in plain words and suggest the smallest fix. Don’t change anything that already works.

  2. Check the service isn’t down.

    If you use one of these, open its status page before changing any code: Supabase, Vercel, Netlify, Cloudflare, Stripe, Clerk, Firebase, Resend, GitHub, Expo, Claude, OpenAI.

  3. Go back to your last saved version.
    Troubleshooting prompt
    Take my product back to the last saved version that worked. First show me which version that is and what will change. Don’t delete anything else.

  4. Make the change smaller.
    Troubleshooting prompt
    Let’s make a smaller change. Undo what you just tried. Then do only the first part of it, and tell me how to check that part works before we go on.

  5. Ask a person.

    Copy this, fill in each line, and post it in a community like r/vibecoding. Take out any keys or passwords first.

    Problem report
    What I'm building: (one sentence)
    What I asked my AI tool to do: (the last request)
    What I expected: (what should happen)
    What happened instead: (what you see)
    The exact error, if any: (copy it here)
    What I've tried: (each attempt, in order)
    My tools: (AI tool, website or app, hosting)

Look things up

Questions people ask

Words used on this page

Repository
A repository, or repo, is a folder for your product that Git tracks, including the full history of every saved change. You can keep it on your computer and copy it to GitHub.
GitHub
GitHub is a website that stores your Git repositories online. It keeps a backup of your product's history and lets you share code and work with other people.
Git
Git is a free tool on your computer that keeps a history of your product's files. It lets you save versions, compare them, and go back if something breaks.
Commit
A commit is a saved version of your product at one moment, with a short note about what changed. Git keeps every commit, so you can look back or undo a change later.
Remote
A remote is a copy of your repository kept somewhere else, usually on GitHub or GitLab. Git’s default nickname for that copy is origin.
Push
Pushing sends the commits you saved on your computer up to your online copy, like GitHub or GitLab. Until you push, your new versions exist only on your computer.
Branch
A branch is a separate line of work in a Git repository where you can try changes safely. Your main version stays the same until you choose to bring those changes in.
Main branch
The main branch is the usual default branch. Other branches merge into it, and hosts put it online. Main is only a name, and older repositories may call it master.
Pull request (merge request)
A pull request asks to merge one branch into another and shows the changed lines for review. GitLab calls it a merge request.
Code review
A code review is a second look at a change before it's merged. A person or an AI tool reads the changed lines and points out bugs, risks or simpler ways to do it.
Merge
Merging brings the changes from one branch into another. Most often you merge a finished branch into main, so its changes become part of your main version.
Merge conflict
A merge conflict happens when two branches change the same lines differently, so Git can't tell which to keep. Someone has to choose, line by line, before the merge can finish.

Official pages

Updated · GitHub