Use git send-email with Gmail
suggest changeProjects such as the Linux kernel take patches by mail instead of a pull request. This page sends them with git send-email through Gmail.
Add the following to your .gitconfig file:
[sendemail]
smtpserver = smtp.googlemail.com
smtpencryption = tls
smtpserverport = 587
smtpuser = name@gmail.com
Google no longer has a “less secure apps” switch. Use an app password, or OAuth, for smtpuser.
To create a patch series of the last four commits:
git format-patch HEAD~4 --subject-prefix="PATCH <project-name>"
Then send the patches to a mailing list:
git send-email --annotate --to project-developers-list@listserve.example.com 00*.patch
To send a second version of that series:
git format-patch -v 2 HEAD~4
git send-email --to project-developers-list@listserve.example.com v2-00*.patch
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents