[Linux] git send-email的使用

1. git send-email is included in an 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
$ git config --global sendemail.smtpserverport 587
$ git config --global sendemail.smtpencryption tls
$ git config --global sendemail.smtpuser 你的邮箱

3. Start a new branch to do 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_and_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

[Linux] git send-email的使用,古老的榕树,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。