Status → branch → diff → commit Understand the idea Status → branch → diff → commit. A branch isolates a line of work. Inspect status before changing branches, review the diff, stage only intended files, and commit a coherent change. See a concrete example See a concrete example. In a disposable Git repository, run git status, create a branch with git switch -c practice-heading, edit one heading, and run git diff. Review before staging that file and committing. Try it yourself Pause the video and complete the exercise. Avoid this mistake Avoid this mistake. Staging everything without checking for secrets or other people’s changes. Stage named files only. Check your result Check your result. git show --stat displays only the intended files; git status makes remaining uncommitted work visible. Open the lesson below, try the exercise, and mark it complete only after checking the result.