[Linux] git send-email的使用
2015-06-09 20:02
519 查看
http://www.cnblogs.com/0616--ataozhijia/p/3830698.html
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
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 性能监控、测试、优化工具
- linux下date命令及系统时间设置
- Linux-EXT2文件系统
- 【Linux】 MySQL
- Linux学习记录--匿名沟通渠道
- 在Ubuntu Linux下怎样安装QQ
- 一张图记住常用 Linux 系统性能诊断工具
- 关于Linux的总结(三)
- linux 平台性能分析工具
- Linux inotify功能及实现原理
- Linux——RPM包管理
- linux(CentOS) 下安装java运行环境及输出Hello World
- Linux安全之SYN攻击原理及处理
- (2)LinuxI2C驱动--I2C总线
- 01 Linux入门介绍
- 【DNS服务器架设】Centos下转发DNS服务器的架设与测试
- 【DNS服务器架设】Centos下转发DNS服务器的架设与测试
- Linux中如何搭建一个ftp服务服务器-超详细
- Linux线程互斥量--进程共享属性
- linux uniq 命令详解