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

分类:  Linux
本文转自demoblog博客园博客,原文链接http://www.cnblogs.com/0616--ataozhijia/p/3830698.html如需转载请自行联系原作者

demoblog
相关文章
|
1月前
|
存储 Shell Linux
【Shell 命令集合 文件管理】Linux git命令使用教程
【Shell 命令集合 文件管理】Linux git命令使用教程
34 0
|
1月前
|
Linux 开发工具 数据安全/隐私保护
【Linux】—— git的管理以及使用
【Linux】—— git的管理以及使用
|
1月前
|
小程序 Linux 开发工具
Linux:进度条(小程序)以及git三板斧
Linux:进度条(小程序)以及git三板斧
34 2
|
1天前
|
Linux 开发工具 C语言
【linux基础(七)】Linux中的开发工具(下)--make/makefile和git
【linux基础(七)】Linux中的开发工具(下)--make/makefile和git
|
1月前
|
Shell Linux 开发工具
【Shell 命令集合 系统管理 】Linux 查看当前Git仓库的提交历史 gitps命令 使用指南
【Shell 命令集合 系统管理 】Linux 查看当前Git仓库的提交历史 gitps命令 使用指南
16 0
|
1月前
|
NoSQL Linux 开发工具
【linux】git和gdb调试工具
【linux】git和gdb调试工具
54 5
|
2月前
|
Linux 开发工具 数据安全/隐私保护
【Linux】git操作 - gitee
【Linux】git操作 - gitee
【Linux】git操作 - gitee
|
3月前
|
Linux 开发工具 git
【Linux系统编程】初步运用git工具--2
【Linux系统编程】初步运用git工具--2
|
3月前
|
Linux 开发工具 git
【Linux系统编程】初步运用git工具--1
【Linux系统编程】初步运用git工具--1
|
4月前
|
Ubuntu Linux 开发工具
Linux Ubuntu配置Git的方法
Linux Ubuntu配置Git的方法