This post sets up gmail as smtp server.
sudo apt install git git-core git-sendmail
What we should do is to add the following configuration to ~/.gitconfig.
[sendemail] from = YourName <email@example.com> smtpserver = smtp.gmail.com smtpuser = firstname.lastname@example.org smtpencryption = tls smtppass = PASSWORD chainreplyto = false smtpserverport = 587
Note that, please modify the configuration according to your personal profile. For me, it is :
[sendemail] from = Dongliang Mu <email@example.com> smtpencryption = tls smtpuser = firstname.lastname@example.org smtpserver = smtp.gmail.com smtpserverport = 587 chainreplyto = false
You can find that
smtppass is missing here. Due to security concern, I intentionally remove this configuration. But if for convenience or being confident with your environment, you could set the smtppass as plaintext.
Then you could follow my other post to send kernel patch.