CollaborationBeginner
Git Branching Basics for Teams
Keeping main safe, the difference between merge and rebase, and the everyday habits that reduce conflicts — learned through questions.
SSunmi Lee·1 week ago·12 min read
Section 01
Branching Basics
A branching strategy is the shared agreement that reduces conflicts and keeps deploys stable when many people edit the same codebase at once.
Because main should always stay deployable. Features are built on a separate branch, reviewed, then merged.
Merge creates a new commit joining two histories; rebase moves your commits on top of main, rewriting history into a straight line. Merge is usually safer for shared branches.