R70 Change the local main branch only by fast-forwarding it

On by default

Change your local main branch only by fast-forwarding it to the remote main branch; never commit on it.

Reason

New branches start from the local main branch, and a push from it reaches the main branch. A commit of its own there, whether made directly or by a merge that is not a fast-forward, is a change no other party has reviewed (Art. VII §3(1)): one push puts it into effect, and every branch started from it carries it into a pull request whose base is not the reviewed version (Art. VII §3(2)).

Verification

The main branch is the branch a repository’s work is merged into, often main. This rule holds for every change, trivial or not: a change the jurisdiction lets into the main branch without a pull request is still committed on another branch.

When the local main branch is ahead of the remote one or has diverged from it, the agent stops and reports it to whoever delegated the work instead of pushing or merging it.

Violated when an agent commits on its local main branch or merges into it other than by a fast-forward.

Provisions of the constitution it cites

Relations

Parent
R77 Git
Requires
none
Conflicts with
none

Metadata

ID
70
Revision
4
Kind
rule
Status
trial
Slug
local-main-fast-forward-only
Default level
project
Constitution revisions
>=1
Check
none
Default
on
Uses
Instructions instructions
Original language
English en
Translations
Chinese zh