QamoosTech
Git & CollaborationBeginner

Branch

PronunciationBRANCH

Definition

A separate line of work in Git, so you can build a feature without affecting the main code.

Where you hear it

Team workflows ("create a branch for the ticket").

Examples

  • Create a new branch for the payment feature.
  • Do not push directly to the main branch.
  • Rebase the feature branch on main before you open the pull request.

Common mistake

Keeping a branch alive for weeks. The longer it lives, the harder it is to merge.

Say it at work

  • In a meeting or chatCan you please push your branch to the remote repository so I can review it?
  • In an email or ticketI created a new branch from main to fix the login bug.