Git & GitHub·Practice drills 8

Drill 12: Make it smaller — Project: ship a change

Write a smaller version of the example that keeps the core idea.

Beginner 5 min read Lesson 208 of 480 Challenge included
What you will be able to do
  • Write a smaller version of the example that keeps the core idea.

Practice task

Write a smaller version of the example that keeps the core idea.

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 your answer

Easy

Write a smaller version of the example that keeps the core idea.

TEXT · starter
Your answer…
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 208 of 480 · 0% of course