What you need to know

A branch isolates one task from ongoing work. Small commits make it easier to review a change, locate a regression, or undo a specific part without losing unrelated work.

How to apply it

Create a branch from an updated main, make one focused change, run checks, and open a pull request with a clear summary. Merge only after reviewing the diff and resolving conflicts.

Common mistake to avoid

Do not bundle unrelated fixes into a single commit. Clear history helps teammates understand why a change exists.