Skip to content
Valery

Module 10 · Lesson 1 of 6

GitHub for non-developers

Repositories, commits, branches and pull requests in plain words, and how to review what a coding agent changed.

8 min

When a coding agent builds something for your brokerage, the work has to live somewhere: every file, every change and a record of who changed what. For almost every small team that place is GitHub. You don't need to write code to use it well. You need to know six or seven words, where to click, and what to look for before you say yes to a change.

This lesson gives you that. By the end you'll be able to open a pull request from a coding agent, understand what it changed, test it, and decide whether it goes live. That review step is where a brokerage keeps control of its own tools.

What GitHub is

Git is a free program that keeps the full history of a folder of files. Every time someone saves a meaningful change, Git stores a snapshot with a note explaining it. GitHub is a website that hosts those folders online and adds the collaboration pieces: comments, reviews, task lists and permissions.

Think of a deal file that keeps every version of every document, signed and dated, with a note from whoever touched it. You can see what the agreement of purchase and sale looked like on Tuesday, who changed the closing date on Wednesday, and why. Git does that for code.

Key term
Repository (repo)

A project folder on GitHub with its complete history. One app, one repository: for example open-house-signin or listing-alerts. A repository can be private (only people you invite can see it) or public (anyone on the internet can read it).

The words you need

TermWhat it meansBrokerage comparison
RepositoryThe project folder and its full historyThe whole deal file
CommitOne saved change with a short note ("Add phone field to form")A dated, initialled amendment
BranchA separate copy where changes are made without touching the live versionA draft you work on before anyone signs
mainThe branch that holds the approved, live versionThe executed agreement
Pull request (PR)A request to merge a branch into main, with a description and the list of changed filesSending the draft to the broker of record for sign-off
ReviewComments, approval or a request for changes on a pull requestThe broker's notes in the margin
MergeAccepting the pull request so its changes join mainSigning the amendment
IssueA written task or bug report attached to the repositoryA to-do on the transaction checklist

You'll hear "push" (send commits from a computer up to GitHub) and "clone" (download a copy of a repository) as well. Coding agents do both for you.

How a coding agent works with GitHub

Claude Code, Codex, Cursor and similar tools (Module 3) all follow the same pattern when they're connected to a repository. You describe the change in plain words. The agent creates a branch, edits files, saves its work as commits and opens a pull request. If the repository is connected to Vercel (next lesson), a preview link to a working copy of the change appears on the pull request within a few minutes.

A coding agent's change, from request to live
  1. 1. HumanYou describe the change in plain words
  2. 2. AIAgent creates a branch
  3. 3. AIAgent edits files and commits
  4. 4. ToolPull request opens on GitHub
  5. 5. CheckPreview link to test the change
  6. 6. HumanYou review, comment or approve
  7. 7. ActionMerge to main and go live

Nothing reaches the live site until a person merges the pull request.

The pull request is your control point. On GitHub, open it and look at four things:

  1. The description. Does it say what you asked for, in words you understand? Ask the agent to rewrite it if not. A good description lists what changed, why, and how it was tested.
  2. Files changed. This tab lists every file touched. You don't need to read every line. You do need to notice surprises: a file you didn't expect, a file named .env, a spreadsheet export, or hundreds of changed files for a one-line request.
  3. The preview. Click it and use the change the way a client would. Try it on your phone too.
  4. Checks. Green ticks mean automated tests and the build passed. A red cross means something failed. Click "Details" and paste the error into your coding agent.

If something is wrong, leave a comment on the pull request ("The phone field should be optional") or tell the agent directly. When it's right, approve and merge. Make it a written rule that agents always work on a branch and open a pull request, and never push straight to main on an app people rely on. GitHub can also enforce that with branch rules; check which rules your plan includes.

Private or public?

Brokerage projects should be private by default. GitHub's free plan includes private repositories, so cost is not a reason to go public. A public repository is fine for something with nothing confidential in it, such as a mortgage calculator you're happy to share.

Private does not mean safe for everything. Even in a private repository:

  • Never store client data. No CRM exports, no sign-in sheets, no FINTRAC records. Repositories get copied to laptops, coding agents and other services.
  • Never store secrets: API keys, database passwords, tokens. Lesson 3 covers where they go instead.
  • Invite people with the lowest role that works. A contractor who only reviews doesn't need admin rights.

For a brokerage, create a GitHub organization owned by the brokerage (using a brokerage email address, with at least two owners) rather than keeping important code in one agent's personal account. If that person leaves, the code stays. Lesson 6 covers account ownership in more detail.

Never commit secrets

Git remembers everything. If a key is committed and then deleted in the next commit, it is still in the history, and anyone who can read the repository can find it. Automated scanners look for exposed keys in public code all the time.

Three habits prevent most leaks:

  • Keep secrets in .env files that Git ignores. A .gitignore file lists files Git should never save. Most project templates, including the default Next.js template, already ignore .env files. Check that yours does before the first commit.
  • Let GitHub catch mistakes. GitHub's push protection blocks a push that contains a recognized secret. As of October 2026, push protection for users is on by default and stops you pushing secrets to public repositories. For private repositories owned by an organization, repository push protection needs GitHub Secret Protection, a paid add-on. See the GitHub Docs page in this module's sources.
  • Tell your coding agent the rule. Put a line in the agent's project instructions file: "Never write API keys, passwords or tokens into any file except .env.local, and never commit .env files."

If a secret does get committed, deleting it is not enough. Treat it as leaked and rotate it: create a new key, update where the app reads it, and cancel the old one. Lesson 3 walks through the steps.

In practice

Dana runs operations at Maple & Main Realty, a fictional 15-agent brokerage in Toronto. They ask a coding agent to add a "Book a private showing" button to the brokerage's open-house page.

Twenty minutes later a pull request appears: "Add showing button and booking form". Dana opens it.

  • The description says the button opens a short form and emails the listing agent. That matches the request.
  • The Files changed tab lists four files. Three make sense: the page, the form and a small email helper. The fourth is .env.local.
  • Dana clicks it. It contains the brokerage's email-sending API key.

Dana does not merge. They comment: "Please remove .env.local from this branch and add .env*.local to .gitignore." Because the key was pushed to GitHub, even in a private repository, Dana also creates a new email-sending key, stores it in Vercel (lesson 3) and deletes the old one.

The agent pushes a fix. The pull request now shows three files. Dana opens the preview, books a test showing for 123 Example Street using a made-up name, confirms the email arrives, and merges. The change goes live a few minutes later.

The review took Dana about ten minutes and they never read a line of code in detail. They read the description, scanned the file list, tested the preview and noticed one thing that didn't belong.

Common mistakes

  • Merging a pull request without opening the preview, because the description sounded right.
  • Letting an agent push directly to main on a live app "just this once".
  • Keeping the brokerage's only copy of an app in an agent's personal GitHub account.
  • Deleting a leaked key from the code and assuming the problem is solved. It is still in the history.
  • Committing a CSV of real leads "just for testing".

Key takeaways

  • A repository is the project and its full history; a pull request is a proposed change waiting for your sign-off.
  • Review every agent pull request: read the description, scan the changed files, test the preview, check the build.
  • Keep brokerage repositories private and owned by a brokerage organization, and never put client data or secrets in them.
  • A committed secret is a leaked secret. Rotate it, don't just delete it.

Finished reading? Move on when you're ready.