Skip to content
D2Level 3 · MakerUnder the hoodAbout 205 minutes of lessons

Git & GitHub

Save every step, work on branches, and review pull requests, including ones an AI agent wrote.

Suits
Learners comfortable with the terminal basics in D1. Everything is practised in Amphicode's pretend Git sandbox; a real GitHub account is optional and a family decision.
Where it fits
Level 3, Maker (13+): Work like a developer: real React projects with tests in the Maker Studio, a real repo, branches, pull requests and code review, plus safety habits for keys, secrets and dependencies. This course is in Under the hood: The concepts and tools behind an app: files, front end and back end, data, APIs, Git, hosting and deployment.

What you'll be able to do

  • Create a repository, stage changes and make commits with clear messages.
  • Read the history, compare versions and undo mistakes safely.
  • Use branches to try ideas without breaking the working version, and merge them back.
  • Explain what a pull request is and write a kind, specific review.
  • Describe how teams collaborate through a remote repository, and what public versus private means.
  • Keep secrets and personal information out of every commit.
  • Follow a pull request from branch to merge, and undo a bad merge with a revert.
  • Review an AI-written pull request: check its scope, run it, scan for secrets, unsafe input and unneeded packages, and request changes politely.
  • Review a pull request with the AI helper switched off.

Lessons

  1. 1. Repositories and commits

    25 min

    Create a repo, stage changes and commit with clear messages.

  2. 2. History and undo

    25 min

    Read the log, compare versions and go back safely.

  3. 3. Branches

    25 min

    Try ideas on a branch and merge them when they work.

  4. 4. Pull requests and reviews

    25 min

    Propose changes, review code and respond to feedback.

  5. 5. Collaborating on GitHub

    25 min

    Remote repositories, push and pull, issues, and what is public versus private.

  6. 6. The life of a pull request

    25 min

    Branch, commits, pull request, review, merge, and how to undo a merge with a revert.

  7. 7. Reviewing an AI-written pull request

    30 min

    Read the diff, check it does only what was asked, run it, look for secrets, unsafe input and fake packages, then request changes politely.

  8. 8. AI-off checkpoint: review a pull request on your own

    25 min

    With the AI helper switched off, read, run and trace an agent's pull request, decide what to do, and plan a revert.

How it's assessed

  • Makes a series of meaningful commits in the sandbox, keeping .env out of history.
  • Finds a bad commit using the log and undoes it with git revert.
  • Creates, merges and explains a branch, and reads a merge conflict.
  • Writes a kind, specific pull request review that spots a secret and an accessibility problem.
  • Explains push, pull and public versus private repositories.
  • Explains the life of a pull request in their own words, including when and how to revert.
  • Reviews an AI-written pull request against its task and finds out-of-scope changes, a secret, unsafe input and an unneeded package.
  • Passes the AI-off review checkpoint: traces the code, finds the problem and writes a kind, specific review without the AI helper.

To complete the course

  • Pass each lesson check (70% or more).
  • Complete the tasks in the Git sandbox and the branch visualiser challenge.
  • Complete the pull request review lab, including the AI-off checkpoint.

Notes for parents, guardians and teachers

  • D2 is taught entirely with Amphicode's pretend Git sandbox. No GitHub account is needed to complete the course.
  • GitHub's terms set a minimum age (shown on the GitHub card in the lesson), and local rules can be stricter. Whether a learner has an account is the family's decision; if so, we suggest setting it up together, with a username that doesn't reveal personal details.
  • Learners are taught to keep keys and personal information out of every commit, and to tell an adult if a secret is ever committed.
  • The pull request review lab uses example pull requests inside Amphicode. If your family uses a real code-hosting account, reviewing and merging there is something to set up and supervise together.
  • One lesson is an AI-off checkpoint: the AI helper is hidden so learners show what they can read and review on their own.

What comes next

  • V7: Launch a Real App · Give your Studio app a real database and sign-in, test it like a user, keep its secrets out, and put it on the internet — with a way back if something goes wrong.
  • D3: Deploying to the Web · How hosting turns your code into a website, and how to move your app to a new home without losing anything.
  • F4: Your Graduation Project · Your graduation project: plan, build, review, launch and move one real app with Amphicode's coding agent, and show you understand every part.

A parent, guardian or teacher creates the account. A short placement check suggests where each learner starts.