- Default branch:
master - Always fetch and pull before branching:
git fetch origin git checkout master git pull origin master
- Create feature branches from up-to-date
master:git checkout -b feature/<description> master
- Branch naming:
feature/*,fix/*,chore/* - Rebase before pushing:
git fetch origin git rebase origin/master
- Never commit directly to
master— always use feature branches + PRs