Sending patches by mail

suggest change

Suppose you have many commits against a project (here ulogd2, whose official branch is git-svn) and you want to send that patch series to the mailing list devel@netfilter.org. From the root of the repository:

git format-patch --stat -p --raw --signoff  --subject-prefix="ULOGD PATCH" -o /tmp/ulogd2/ -n git-svn
git send-email --compose --no-chain-reply-to --to devel@netfilter.org /tmp/ulogd2/

The first command writes a numbered series of patch messages, with a diffstat, under /tmp/ulogd2/. The second opens your editor so you can compose an introduction. To keep the messages from being chained as replies to each other:

git config sendemail.chainreplyto false

source

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents