Course contentsLesson 6 of 6← Course overview
  1. 01A page is a conversation18 min
  2. 02Give your content structure24 min
  3. 03Make a layout that adapts32 min
  4. 04Make a button do something35 min
  5. 05Make forms easier to use28 min
  6. 06Keep a trail of your work36 min

Web development · Lesson 06

Keep a trail of your work

Edit lesson

Use Git to record progress and a simple method to investigate bugs.

36 minProgress saves on this device
In this lesson
  • Explain what a Git commit records
  • Use a repeatable debugging loop

Helpful background: A small page or code example you can change.

A commit is a checkpoint

Git records a snapshot of selected file changes. A useful commit has a focused change and a message that says what changed. Checkpoints let you review how your project evolved.

Debug in small steps

First reproduce the issue. Then describe what you expected and what happened. Inspect the relevant code and browser console, change one thing, and try again.

Share context with your future self

A README can explain what the project does, how to open it, and what you learned. A clear project page makes your work easier for another person to understand.

A small Git checkpointbash
git status
git add index.html styles.css
git commit -m "Add responsive homepage layout"
Knowledge check

What makes a commit message useful?

Try first; feedback appears after you check.
Apply it

Your turn

A button works in one browser but not another. Write down the first three things you would check before changing code.

BUILT TOGETHER

Help make this explanation better.

Have a clearer explanation, a useful example, or a correction? Share it with the community.

Contributors

Be the first to add your name when you improve this lesson.

How to get credited
Previous lessonOpen project