Git Logo

send-email

This page describes how to configure git for sending patches to a mailing list for Linaro developers.

git-send-email is an optional package in Ubuntu, so you may want to make sure its installed:

$ sudo apt-get install git-email

Once its installed you need to add a "sendemail" stanza to your .gitconfig file:

[sendemail]
        smtpencryption = tls
        smtpserver = smtp.gmail.com
        smtpuser = <<TODO_YOUR_EMAIL>>@linaro.org
        smtpserverport = 587

If you only use this git setup for public work then you may also want to configure this to automatically send copies of posted patches to linaro-kernel@lists.linaro.org. This page uses linaro-kernel as an example of how to add a CC address, but obviously this is likely to be inappropriate if you're not writing kernel patches. Adjust your config as appropriate; ask your tech lead if you're not sure who should be CCed on patches you send.

        cc = linaro-kernel@lists.linaro.org

NOTE: It is very important that you make sure that this doesn't result in non-public patches being sent to public mailing lists or trackers (for example, work on pre-release hardware). If in doubt add these CCs by hand when you are posting.

StGit

StGit does not use the sendemail.cc field. If you send patches using this tool you need to copy /usr/share/stgit/templates/patchmail.tmpl to ~/.stgit/templates/ and add a

CC: linaro-kernel@lists.linaro.org

.gitconfig

If you only use git for public work then to ensure that you don't forget to CC: linaro-kernel, run the following commands to modify your $HOME/.gitconfig (all patches from your machine will be CCed to these addresses):

git config --global --add sendemail.cc "linaro-kernel@lists.linaro.org"

If you want more control, and your linaro work happens in a single git tree, you could do the following:

$ cd <your linaro git tree>
$ git config --add sendemail.cc "linaro-kernel@lists.linaro.org"

NOTE: It is very important that you make sure that this doesn't result in non-public patches being sent to public mailing lists or trackers (for example, work on pre-release hardware). If in doubt add these CCs by hand when you are posting.


CategoryHowTo

Resources/HowTo/Git/GitSendEmail (last modified 2014-04-17 20:28:28)