LinuxCommandLibrary

git-coauthor

Add co-author attribution to commits

TLDR

Add coauthor to last commit

$ git coauthor "[Name]" "[email@example.com]"
copy
Add multiple coauthors
$ git coauthor "[Name1]" "[email1]" "[Name2]" "[email2]"
copy

SYNOPSIS

git coauthor name email [name email]...

DESCRIPTION

git coauthor adds Co-authored-by trailers to the last commit message. GitHub and GitLab recognize these trailers to attribute commits to multiple contributors.
The command amends the last commit, appending Co-authored-by lines in the format recognized by GitHub and GitLab. Multiple coauthors can be added in a single invocation.
This supports pair programming, mob programming, and collaborative coding workflows where attribution should reflect the actual contributors rather than just the person who typed the commit command.

PARAMETERS

NAME

Coauthor name.
EMAIL
Coauthor email.
--help
Display help information.

CAVEATS

Part of git-extras package. Amends last commit (rewrites history). Coauthors must match platform accounts for attribution.

HISTORY

git coauthor is part of git-extras, created to support GitHub's co-author trailer convention for attributing collaborative work.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community