← Field Notes

Part 2 of 2November 2026

Let’s git started: coding with AI when you’ve never coded

I teach people who’ve never written code to make real changes with Claude Code. Here’s the whole workshop: Git explained with things you already know, the handful of commands you need, and how to ask Claude for what you want.

This is part 2 of 2. Haven’t set up GitHub, Git, and Claude Code yet? Start with part 1, Getting set up.

If you can use Google Drive, you already understand most of Git. You just don’t know the words yet.

You already know this

Git is a free version control system: it tracks every change to a set of files. GitHub is the website where those files live, built on Git. Here’s how the things you already do in Google Drive map onto them, one at a time.

Google Drive → GitHub

Google Drive is the app you work from: a cloud home for all of your work, reachable from any computer you sign in on. GitHub is the same thing, for project files.

A Shared Drive → A repository (“repo”)

A Shared Drive is a folder the whole team owns. A repo is the same: a named folder owned by a team rather than one person.

A file → A file in the repo

Just a file, the thing you actually work in. The difference: Git records every change made to it, and by whom.

Making a copy of a doc → A branch

You make a copy when you don’t want to touch the master version. A branch is a copy that remembers where it came from, so folding it back in is a defined step, not a manual comparison.

Version history → The diff and commit history

Both show what changed, and let you undo it. The diff just makes it far easier to read: removed lines in red, added lines in green.

Comment-only access → A pull request (“PR”)

Comment-only access lets people suggest changes without editing directly. A pull request does the same: propose changes, get them reviewed, then merge. Review becomes a step, not a courtesy.

Download for offline editing → Cloning the repo

Both let you take a copy away with you. Cloning gives you the full copy, with its whole history, and works with no internet at all. One big difference: if you change something offline while someone else changes the same part online, Drive lets your version silently overwrite theirs when you reconnect. Git stops and asks.

Why bother?

Three reasons. Nothing is silently overwritten: Git stops and asks when two people change the same line. Changes are easy to read and review: one change at a time, with the added and removed lines called out, and a note on why. And there’s one agreed source of truth: changes get proposed and reviewed before they join the main copy.

How Git actually works

  1. 1One shared line of work. Each dot is one saved snapshot, called a commit.

    It’s like… opening the "master" document and checking its version history.

  2. 2You branch off it. The shared line hasn’t changed, and nothing you do here can break anyone else’s work.

    It’s like… making a copy of a doc to work in.

  3. 3Your commits pile up on your branch, out of everyone’s way, in order, each with a note.

    It’s like… naming versions in the version history of your own copy.

  4. 4A colleague branches off the same shared line, at the same time. Neither of you can disturb the other.

    It’s like… someone else making their own copy of the "master" document.

  5. 5Each branch is reviewed, then merged back. Both changes land on the shared line, and nobody overwrote anybody.

    It’s like… the document’s owner accepting both sets of edits.

The shared line is usually called main (older projects call it master). That’s the whole picture. Everything else is just the handful of commands that move you around it.

The commands, start to finish

In the order you’d actually run them:

CommandWhat it doesIt’s like…
git cloneDownloads the repo, and its whole history, to your computer. Once per project, ever.Downloading a Shared Drive folder
git checkout mainMoves you onto the shared branch.Opening the master version of a doc
git pullGets the latest changes from GitHub. The only one of these that talks to the cloud.Refreshing after someone else edited
git checkout -b "name"Starts a new branch and moves you onto it.Making a copy of the doc to work in, and naming it
claudeOpens Claude Code in this folder. Now you work with Claude to make your changes.Opening the doc so you can start typing
git statusShows which files you’ve changed. Changes nothing, so it’s safe to run constantly.Checking what’s unsaved
git addChooses which changes go into the next snapshot.Choosing what goes into a version
git commitSaves a snapshot, with a message.Naming a version in version history
git pushSends your branch up to GitHub, where your team can see it.Syncing your offline edits back

Here’s what that looks like, start to finish:

Terminal · ~/Documents/your-project

Command: git checkout main. Output: Switched to branch 'main'

Command: git pull. Output: Already up to date.

Command: git checkout -b "fix-signup-instructions". Output: Switched to a new branch 'fix-signup-instructions'

Command: claude. Output: (you and Claude make your changes here)

Command: git status. Output: On branch fix-signup-instructions modified: contact/signup.html

Command: git add .. Output: (nothing printed: that means it worked)

Command: git commit -m "updated the sign-up instructions". Output: [fix-signup-instructions 4c1e2a9] updated the sign-up instructions 1 file changed, 3 insertions(+), 1 deletion(-)

Command: git push. Output: To github.com/you/your-project * [new branch] fix-signup-instructions -> fix-signup-instructions

Doing it with Claude

Here’s the part that makes this approachable: Claude Code understands plain English. Tell it what you want and it works out the right commands and runs them. Every step below can be done two ways, in the Claude app or in the Terminal. Pick the one you’re comfortable with and stick to it.

Get set up (every time)

StepIn the Claude appIn the Terminal
Open your projectGo to Code and choose the folder you want Claude to work in.cd Documents/your-project
Get on main“Put me on the main branch.”git checkout main
Get the latest“Please pull the latest changes.”git pull
Start your branch“Start a new branch called fix-signup-instructions.”git checkout -b "fix-signup-instructions"

With Claude, the whole setup is two sentences. In the Claude desktop app, it looks like this:

You: Put me on the main branch and pull the latest changes.. Claude runs: git checkout main && git pull. Claude: You’re on main, and it’s up to date with GitHub.

You: Start a new branch called fix-signup-instructions.. Claude runs: git checkout -b fix-signup-instructions. Claude: Done. You’re on fix-signup-instructions, so nothing you change touches main.

And in Claude Code, in the Terminal:

claude · ~/Documents/your-project

You: Put me on the main branch and pull the latest changes.. Claude runs: git checkout main && git pull. Output: Switched to branch 'main' Already up to date.. Claude: You’re on main, and it’s up to date with GitHub.

You: Start a new branch called fix-signup-instructions.. Claude runs: git checkout -b fix-signup-instructions. Output: Switched to a new branch 'fix-signup-instructions'. Claude: Done. You’re on fix-signup-instructions, so nothing you change touches main.

Ask for what you want

Here’s the kind of prompt I teach:

Look at the sign-up form on the contact page. People are getting stuck on the photo step, because they don’t know they need to click Choose File to take a photo. Please update the instructions on that step to explain it.

  • Be as specific as you can, even though Claude can handle vague asks.
  • Tell it where to look, what to do, and what the goal is. The prompt above does all three.
  • Point to a working example if something similar already exists somewhere else.
  • Don’t ask for too many things at once.
  • For bigger changes, use plan mode first. Read Claude’s plan, approve it, then let it run.

As you go

Commit and push often, so your work doesn’t get lost.

StepIn the Claude appIn the Terminal
Check what changed“Show me which files I’ve changed and what the differences look like.”git status, then git diff
Save your work“Commit my changes with the message: updated the sign-up instructions.” Or just “commit”, and Claude writes its own message.git add . then git commit -m "updated the sign-up instructions"
Send it up to GitHub“Commit my changes and push them.”git push
Open a pull request“Push my branch and open a draft pull request.”Easiest to ask Claude, even if you ran everything else yourself.

In the app, saving and sharing your work is two more sentences:

You: Commit my changes and push them.. Claude runs: git add . && git commit -m "Update the sign-up instructions" && git push. Claude: Committed “Update the sign-up instructions” and pushed fix-signup-instructions to GitHub.

You: Open a draft pull request.. Claude runs: gh pr create --draft. Claude: Opened a draft pull request, “Update the sign-up instructions”. Here’s the link, so your team can review it.

Before you call it done

  • Test your change wherever your team previews work. If something’s off, keep chatting with Claude about it.
  • Check the diff. If it’s hundreds of lines long and you only asked for a small change, Claude probably changed things you don’t want or need.
  • Read the pull request description. Does everything Claude says it did match what you expected? Sometimes Claude goes a little off the rails. Ask it to “update my PR description” once you’re happy.
  • Ask for a review, then merge once it’s approved.

What you actually need to remember

Once, ever: git clone. One project, one time.

Every time you start: get on main, pull, and start a branch. Three requests to Claude, or three commands.

While working: just tell Claude, “commit my changes and push them.”

You can do it!