Reference

Git branching reference

A short map of trunk-based and feature-branch habits that keep CI happy.

Habits

main stays releasable
Protect main; merge via PR.
Short-lived feature branches
Small diffs review faster and rebase cleaner.
Rebase or merge intentionally
Pick one team default; document it.
Never rewrite shared history casually
Force-push only on your private branch.

← All reference pages · Courses