Skip to content
GitTree

Video: Read the comparison before judging a change

The video plays in YouTube’s player, in privacy-enhanced mode.

Turn the hero into a runnable static project, then distinguish working, staged and recorded differences. Inspect a separate deterministic image variant without adding an image commit to the continuing course history.

Read the full lesson

The article has every step and command from the video, the practice exercise and the questions.

Go to the lesson

Video transcript

The narration of the video, cue by cue.

  1. Read the comparison before judging the change.
  2. The later hero line is still working content, not a new commit.
  3. Ordinary and staged diffs compare different snapshots.
  4. Add the full runnable inputs, keeping the existing supporting-line edit.
  5. New files can be missing from ordinary diff until they enter the index.
  6. Stage the declared inputs, not generated build output.
  7. The layout changes your view, not the compared bytes.
  8. Follow the surrounding text before interpreting an addition or removal.
  9. Hiding whitespace is not deleting a whitespace change.
  10. Run the local formatting check before committing.
  11. All six input-validation tests pass in this fixture.
  12. Build output belongs in the ignored directory, not the commit.
  13. Commit the reviewed runnable project locally.
  14. Verify two commits and no remaining tracked difference.
  15. Use a separate copy for image comparison, not the continuing checkpoint.
  16. The two exact PNG payloads identify the image states.
  17. Compare the named sides and their actual dimensions.
  18. Move the divider without changing either file.
  19. Opacity changes the comparison, not the saved pixels.
  20. Git's binary summary is not a count of changed pixels.
  21. An unsupported or oversized file must keep its honest notice.
  22. Keep the image fixture outside the canonical history.
  23. Predict which comparison shows a newly staged file.
  24. Next, select hunks and lines without discarding other work.

All tutorials