码迷,mamicode.com
首页 > 系统相关 > 详细

[Linux] git send-email的使用

时间:2014-07-08 14:49:13      阅读:413      评论:0      收藏:0      [点我收藏+]

标签:使用   os   art   for   io   linux   

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 kernel@kernel.org 0001-*.patch

[Linux] git send-email的使用,布布扣,bubuko.com

[Linux] git send-email的使用

标签:使用   os   art   for   io   linux   

原文地址:http://www.cnblogs.com/0616--ataozhijia/p/3830698.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!