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.email "yzt356@gmail.com"
git config --global user.name "Arthur Chunqi Li"
No comments:
Post a Comment