LinuxCommandLibrary

git-send-email

TLDR

Send patches via email

$ git send-email [*.patch]
copy
Send to specific address
$ git send-email --to=[maintainer@project.org] [patch]
copy
Send with cover letter
$ git send-email --cover-letter [*.patch]
copy
Dry run
$ git send-email --dry-run [patch]
copy

SYNOPSIS

git send-email [options] patches

DESCRIPTION

git send-email sends patches as emails. It's the standard way to submit patches to projects using email-based workflows, like the Linux kernel.
The command handles SMTP configuration, threading, and proper email formatting for patches. It integrates with git format-patch output.
git send-email enables email-based patch submission.

PARAMETERS

PATCHES

Patch files to send.
--to ADDRESS
Recipient email.
--cc ADDRESS
CC recipient.
--cover-letter
Include cover letter.
--dry-run
Show what would be sent.
--annotate
Edit patches before sending.
--smtp-server HOST
SMTP server.
--help
Display help information.

CAVEATS

Requires SMTP configuration. Some firewalls block SMTP. Cover letters need manual editing.

HISTORY

git send-email supports the email-based patch workflow used by the Linux kernel and other projects, sending properly formatted patch emails.

SEE ALSO

Copied to clipboard