Use of [Linux] git send-email

Source: Internet
Author: User

1. Git send-email is included in a individual package, named "Git-email":
$ sudo apt-get install git-email

2 . Configure the SMTP server info after the installation:
$ git config--global sendemail.smtpserver smtp.gmail.com
$ g It config--global sendemail.smtpserverport 587
$ git config--global sendemail.smtpencryption tls
$ git config--gl Obal Sendemail.smtpuser your mailbox

3. Start a new branch to does any dev work:
$ dev_branch=fix-warning-for-string-format
$ git branch $dev _branch
$ git Checkout $dev _branch
$ vim source.c
$ git add source.c
$ git commit-s-M "Add format strings for Bb_error_msg_an D_die "

4. Format a patch and send it out to the receiver:
$ git format-patch-c-n master. $dev _branch
$ git send-email--compose--no-chain-reply-to--suppress-from--to [email protected] 0001-*.patch

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.