E-mail Git Patches
Categories: [ IT/Git ]
This is, in a nutshell, how to send commits to the (single) maintainer of a project by e-mail.
Add the maintainer's e-mail address to the repository's config:git config --set sendemail.to "John Smith <john.smith@example.com>"Make a set of patches from the commits e.g.,
git format-patch HEADˆor
git format-patch origin/master..master
Send the patches by e-mail:
git send-email *.patch(this sends one e-mail per patch).
On the receiving side, the maintainer can then feed the content of each e-mail
into git am
to apply the patches and record new commits.
The git send-email
command is packaged separately in Debian, the package
git-email
needs to be installed.
This post is based on this page from the Chromium project.