← 返回命令列表

Linux command

git-send-email 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Send patches via email

git send-email [*.patch]

Send to specific address

git send-email --to=[maintainer@project.org] [patch]

Send with cover letter

git send-email --cover-letter [*.patch]

Dry run

git send-email --dry-run [patch]

说明

git send-email sends patches as properly formatted emails. It is the standard way to submit patches to projects using email-based workflows, such as the Linux kernel. The command handles SMTP configuration, threading, and patch formatting. It integrates with `git format-patch` output and supports cover letters for patch series.

参数

--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.

FAQ

What is the git-send-email command used for?

git send-email sends patches as properly formatted emails. It is the standard way to submit patches to projects using email-based workflows, such as the Linux kernel. The command handles SMTP configuration, threading, and patch formatting. It integrates with `git format-patch` output and supports cover letters for patch series.

How do I run a basic git-send-email example?

Run `git send-email [*.patch]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --to _ADDRESS_ do in git-send-email?

Recipient email.