Skip to content

Instantly share code, notes, and snippets.

@dayyan
Forked from jasonkarns/readme.md
Last active April 28, 2022 07:16
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dayyan/e62bddc65ce1af735f0f to your computer and use it in GitHub Desktop.
Save dayyan/e62bddc65ce1af735f0f to your computer and use it in GitHub Desktop.
  1. Configure Gmail in you gitconfig:
[sendemail]
  smtpserver = smtp.gmail.com
  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 <other@user.com>
  1. 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 Net::SMTP::SSL
sudo -H cpan IO::Socket::SSL
@relaxdiego
Copy link

Needed to force installation:

sudo -H cpan -f Net::SMTP::SSL
sudo -H cpan -f IO::Socket::SSL

Thanks for sharing!

@JevonQ
Copy link

JevonQ commented Feb 16, 2016

Following your guide, I still get the error below, any suggestion?
Can't locate Net/SMTP/SSL.pm in @inc (you may need to install the Net::SMTP::SSL module) (@inc contains: /Applications/Xcode.app/Contents/Developer/usr/../Library/Perl/5.18/darwin-thread-multi-2level /Applications/Xcode.app/Contents/Developer/usr/share/git-core/perl /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.2/darwin-thread-multi-2level /Library/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at /Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git-send-email line 1290, line 1.

Thanks,
Jevon

@jasonkarns
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