Skip to content

Instantly share code, notes, and snippets.

Forked from jasonkarns/
Last active April 28, 2022 07:16
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
  1. Configure Gmail in you gitconfig:
  smtpserver =
  smtpserverport = 587
  smtpencryption = tls
  smtpuser = <gmail email address>
  from = <email address for From: field>
  1. I recommend setting up an application-specific password in Google dedicated to git.
Account -> Security -> Connected applications and sites : Manage Access
  1. 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

  2. Send email:

git send-email <revlist> --to <>
  1. If you receive an error like this:
Can't locate Net/SMTP/ in @INC (@INC contains: ...

You may need to upgrade/install the Net::SMTP::SSL or IO::Socket::SSL packages:

sudo -H cpan Net::SMTP::SSL
sudo -H cpan IO::Socket::SSL
Copy link

Thanks, @dayyan, I've merged your changes into mine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment