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
mainbranch.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 chat
Can you please push your branch to the remote repository so I can review it?
- In an email or ticket
I created a new branch from main to fix the login bug.
Keep exploring
More in Git & Collaboration