Git & GitHub·Project

Project: ship a change

Run a complete branch, review, CI and release cycle on a real change.

Beginner 25 min read Lesson 16 of 480 Challenge included
What you will be able to do
  • Plan a branch from an issue
  • Open and update a pull request
  • Merge, tag and clean up

A professional Git workflow is a loop: pick an issue, branch, commit in small steps, open a pull request, respond to review, merge and release.

  1. 01
    Sync

    Update main and branch from origin/main with a descriptive name.

  2. 02
    Build

    Commit in small, reviewable units with clear messages.

  3. 03
    Push

    Publish the branch and open a pull request that links the issue.

  4. 04
    Review

    Address feedback with new commits and keep CI green.

  5. 05
    Merge

    Squash or merge according to team policy, then delete the branch.

  6. 06
    Release

    Tag the merge commit and publish release notes.

workflow.shTerminal
git switch main
git pull
git switch -c fix/empty-cart
# edit, then commit in small steps
git add src/cart.js
git commit -m "fix: show empty state when cart has no items"
git push -u origin fix/empty-cart
gh pr create --fill --base main
gh pr checks --watch
# after approval and green checks
git switch main
git pull
git merge --squash fix/empty-cart
git commit -m "fix: show empty state when cart has no items (#42)"
git push origin main
git tag -a v1.3.1 -m "Release 1.3.1"
git push origin v1.3.1
git branch -d fix/empty-cart
Your turn

Write the release flow

Hard

For a bugfix branch fix/empty-cart, write the commands to push it, open a PR and tag v1.3.1 after merge.

BASH · starter
# your commands here
Check your understanding before moving on.
Knowledge checkQuestion 1

When should the pull request be opened?

Select an answer to continue
Study tools

Make it yours.

Keep a private note for this lesson, then turn the key ideas into flashcards you can revisit.

Sign in to save notes and flashcards.Both are private to your account and stay with your progress.
Sign in
Finished reading?

Lock in what you just learned.

Mark this lesson complete to save your place and move one step closer to the certificate.

Lesson 16 of 480 · 0% of course