liveBook · Manning

Co-authored-by commit trailer

As explained in "Looks Good to Me"

A Git commit-message trailer that identifies an additional author of the committed changes.

Pair programming should credit everyone who contributed, even when one developer creates the commits. A co-authored-by commit trailer adds each collaborator’s name and email address to the commit message. section 11.2.3

Add collaborators when finishing a shared commit:

  • Leave two empty lines after the commit message. section 11.2.3
  • Add one Co-authored-by line for each collaborator, including the name and email address. section 11.2.3
  • Finish the commit message normally after all collaborators are listed. section 11.2.3

Two-person pairing commit

Co-authored-by: ADRIENNE BRAGANZA <ADRIENNE@EXAMPLE.COM> Co-authored-by: MARIO TACKE <MARIO@EXAMPLE.COM> section 11.2.3

Co-authored-by: ADRIENNE BRAGANZA <ADRIENNE@EXAMPLE.COM>
Co-authored-by: MARIO TACKE <MARIO@EXAMPLE.COM>

Inspect the exact multi-collaborator trailer listing. section 11.2.3

How "Looks Good to Me" covers it

How deep it goes
Shows trailer placement, spacing, collaborator identity, and resulting attribution without exploring Git internals.
Examples
Uses a two-collaborator trailer listing with names and email addresses.
What it assumes
Assumes familiarity with pairing sessions and editing Git commit messages.
What you can do after
Apply it via Git, GitHub, or GitLab to attribute every pairing-session collaborator.
How it connects
Connects pair programming with GitHub, GitLab, pull requests, contribution graphs, and commit messages.

This explainer was generated by Manning's knowledge graph from the text of "Looks Good to Me". The section links point to the parts of the book it draws on.