Repos, commits, branches and pull requests

How your project's history works, in plain English — and why it means you can't really lose work.

These four words come up constantly. Here's what they mean, using a shared document as the comparison.

Word Plain English Like…
Repository (repo) The folder with your whole project and its complete history, stored on GitHub A shared drive folder with unlimited version history
Commit A saved snapshot of changes, with a note saying what changed Pressing "save" and writing why
Branch A private copy where changes are tried out, without touching the real thing A draft copy of the document
Pull request (PR) A request to bring a branch's changes into the real thing — showing exactly what changed, with a preview "Suggest changes" waiting for your approval
Merge Accepting a pull request Clicking "accept all changes"

How it fits together

Your live website is the main branch. Your agent never edits main directly. Instead:

  1. it makes a branch (a private copy),
  2. makes and commits the changes there,
  3. opens a pull request, which shows the changes and gets a preview link,
  4. and you decide whether to merge it.

Because every commit is kept, you can always see what changed, when, and why — and go back. Your agent will never "force-push" or rewrite history; those are the few ways history can be lost, and the rules in AGENTS.md forbid them.

You don't need to type any git commands yourself. Your agent does that; you review and decide.