- Configure Gmail in you gitconfig:
[sendemail]
smtpserver = smtp.gmail.com
smtpserverport = 587
smtpencryption = tls
smtpuser = <gmail email address>
from = <email address for From: field>
- I recommend setting up an application-specific password in Google dedicated to git.
Account -> Security -> Connected applications and sites : Manage Access
-
Determine your revlist. To send a single commit, just use the sha. To send a range of commits, you can use
start_sha..end_sha
. Most likely, you'll want to send the commits made to a branch that are missing in upstream. For that, you would use:upstream/branch_name..branch_name
-
Send email:
git send-email <revlist> --to <[email protected]>
- If you receive an error like this:
Can't locate Net/SMTP/SSL.pm in @INC (@INC contains: ...
You may need to upgrade/install the Net::SMTP::SSL or IO::Socket::SSL packages:
sudo -H cpan -f Net::SMTP::SSL
sudo -H cpan -f IO::Socket::SSL
You should not install stuff with
sudo
, nor install stuff globally. So the correct way is to runwithout any arguments, and answer:
Then, open a new terminal window, and run