用git send-email发送patch

来源:互联网 发布:用java输出三角形 编辑:程序博客网 时间:2024/05/19 19:59

用 gmail 作为发送服务器。

为了用git send-email通过gmail服务器发送patch。首先编辑 ~/.gitconfig , 写入你的账号配置



[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
smtpuser = yourname@gmail.com

smtpserverport = 587


配置完成后,用下面的命令发送

git add the-modified-files

git commit

$ git format-patch --cover-letter -o outgoing/ -1 -n -s
$ edit outgoing/0000-*

$ git send-email outgoing/* --to netdev@....

0 0