Configuring git send-email to use Gmail SMTP

谭桐
2023-12-01

Firstly, apt-get install git-email.

Then, add the correct configuration variables with the following:

$ git config --global sendemail.smtpserver smtp.gmail.com

$ git config --global sendemail.smtpserverport 587

$ git config --global sendemail.smtpencryption tls

$ git config --global sendemail.smtpuser your_email@gmail.com

Now it’s ready to use git send-email. Password is needed each time you send email.

P.S. Before using git send-email, you should use git format-patch first.

git format-patch -M origin/master
git send-email --to xxx@xxx.com --cc xxx@xxx.com 0001-xxx.patch


git config --global user.name "xxx" 

git config --global user.email xxx@gmail.com 

 类似资料:

相关阅读

相关文章

相关问答