Capstone team project

Topic 3 of 3 in Production7 min readBeginnerFree course

Overview

You’ve learned the pieces: commits and branches, undoing and rewriting, remotes, pull requests, reviews, workflows, automation and recovery. In this capstone you’ll put them together the way a real team does, and finish with a repository you can show employers.

You can do it alone (playing both roles from two clones, or two GitHub accounts) — but it’s much better with a friend or classmate. The exercise below rehearses the Git side offline first; then follow the steps on GitHub.

Capstone: run a project like a real team. Set up: repo and README, .gitignore and LICENSE, branch ruleset. Automate: CI workflow, PR template, CODEOWNERS. Collaborate: issues to branches, PRs and reviews, resolve a conflict. Ship: tag v1.0.0, release notes, clean history. Finished: a public repository with protected main, passing CI, reviewed pull requests, a clean commit history and a tagged release — a portfolio piece you can show employers.

The project

Build a small website together — a team page, a recipe collection or a “links I recommend” page. The content doesn’t matter; the process does. Plain HTML and CSS is enough.

Phase 1: Set up (one person)

  1. Create the repository on GitHub, public, with a README, an MIT licence and a .gitignore: gh repo create team-site --public --clone --add-readme --license mit --gitignore Node.
  2. Invite your teammate as a collaborator (Settings → Collaborators).
  3. Add project files on a branch and through a PR — even setup goes through review:
    • .github/pull_request_template.md (Pull requests),
    • .github/ISSUE_TEMPLATE/bug_report.yml (Issues and projects),
    • .github/CODEOWNERS with both of you (Reviewing code),
    • .github/workflows/ci.yml — a simple check, for example an HTML validator or link checker, or a script that confirms index.html exists (Continuous integration).
  4. Protect main with a ruleset: require a PR, one approval, the CI check passing, and block force pushes and deletion (Protecting branches).
  5. Enable squash merging only, auto-merge and automatically delete head branches (Settings → General).

Phase 2: Plan

  1. Create a Project board with Todo / In progress / In review / Done.
  2. Write at least six issues — pages, sections, styling, an accessibility check — with labels. Make sure two issues touch the same file (both edit the page heading, say), so you’ll get a real conflict.
  3. Split them between you and assign.

Phase 3: Build together

For each issue, follow GitHub flow:

  1. gh issue develop <n> --checkout — a linked branch.
  2. Small commits with good messages (Conventional Commits if you like).
  3. Push, open a PR with the template filled in and Fixes #n.
  4. Review each other’s PRs properly: run them, comment on lines, use at least one suggestion, request changes at least once.
  5. Address feedback with new commits; tidy with interactive rebase if needed.
  6. Merge when green and approved.

The conflict

When the two heading PRs collide, the second one shows “This branch has conflicts that must be resolved”. Resolve it on the feature branch, never on main:

Terminal
git switch feature/brand
git fetch
git rebase origin/main          # fix the conflict, git add, git rebase --continue
git push --force-with-lease

Request a fresh review if the resolution changed anything meaningful.

Phase 4: Ship

  1. When the issues are done, tag a release: git tag -a v1.0.0 -m "Version 1.0.0" and git push origin v1.0.0 — or add the release workflow from Tags and releases.
  2. Publish a GitHub Release with generated notes: gh release create v1.0.0 --generate-notes.
  3. Optionally publish the site with GitHub Pages (Settings → Pages → Deploy from branch main).

Checklist: what “done” looks like

  • README explains the project and how to run it; licence present
  • main protected: PR + approval + CI required, no force pushes
  • every change arrived through a reviewed PR linked to an issue
  • at least one conflict resolved on a feature branch
  • CI runs on every PR and is green on main
  • clean, readable history on main (git log --oneline tells the story)
  • v1.0.0 tag and a GitHub Release with notes
  • no secrets anywhere in the history

Reflect

Look back at the history with git log --oneline --graph, the closed PRs and the project board. Notice how every line of code can be traced to a commit, a PR, a review and an issue explaining why it exists. That traceability is what makes Git and GitHub so valuable to teams.

Where to go next

  • Contribute to open source: find a good first issue in a project you use and make your first fork-and-PR contribution.
  • Automate more: deploy previews, Dependabot, release automation from Conventional Commits.
  • Go deeper into Git: the free book Pro Git at git-scm.com covers internals, server setup and advanced tools.
  • Keep an eye on Git 3.0 (planned for 2027): main by default, SHA-256 object IDs and the reftable ref format. Nothing in your daily workflow changes.

Congratulations! You now work with Git and GitHub the way professional teams do: small commits, short-lived branches, reviewed pull requests, automated checks, safe undo — and the confidence to recover from anything.

Exercise

Rehearse the whole workflow locally

Before doing the capstone on GitHub, rehearse its Git side offline with a local bare repository as the server and two developers. Set up the repository with a README, .gitignore, PR template, CI workflow and CODEOWNERS; protect main on the server against force pushes and deletion. Asha and Ben each build a feature on a branch — both change the same line of index.html. Merge Asha’s first, then have Ben rebase, resolve the conflict and merge his. Squash-merge style: each feature lands on main as one commit. Tag v1.0.0 and push it. End with a linear history of three commits and the tag on the server.

Terminal
git init -q --bare -b main server.git

# 1. Asha sets up the repository (README, .gitignore, PR template, CI, CODEOWNERS) and pushes

# 2. Protect main on the "server"

# 3. Ben clones; both start a feature branch

# 4. Asha's feature lands first (squash-merge)

# 5. Ben rebases, resolves the conflict, his feature lands (squash-merge)

# 6. Tag and push v1.0.0

Summary

  • A professional repository starts with a README, licence, .gitignore, templates, CI and protected main.
  • All work flows through issues, short-lived branches and reviewed pull requests.
  • Conflicts are resolved on the feature branch — by rebasing or merging main — never on main.
  • Squash merging gives one clean commit per pull request on main.
  • Ship with an annotated tag and a GitHub Release with generated notes.