Sending patches through your GMail account with Git
Configuring git send-email to use Gmail SMTP
If you dont have the command git-send-email command then install it using apt-get install git-send-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: the command git send-email [...]