Good Code
The good version creates a named topic branch, publishes it with upstream tracking, and checks the branch state.
Lesson 04
Create topic branches with clear names and set upstream tracking so future pushes and pulls target the right remote branch.
# Topic branch name tells teammates what this work is about.
git switch -c feature/git-track-lessons
git push -u origin feature/git-track-lessons
git status --short --branch# Committing directly on main raises the cost of mistakes.
git switch main
git commit -am "changes"
git push origin HEADThe good version creates a named topic branch, publishes it with upstream tracking, and checks the branch state.
The bad version commits on main and pushes HEAD without a clear target. That makes accidental pushes harder to spot in review.