标签: git-send-email

如何配置和使用“git send-email”与 gmail 配合使用,通过电子邮件向开发人员发送补丁

如何配置git send-email才能使用 Gmail?


我想为glibcGNU C 库,不要与GNOME 的 GLib库混淆)做出贡献,例如,更新glibc/benchtests/bench-malloc-thread.cmalloc 速度测试基准测试,但它们已经过时且过时,并且仍然生活在我们拥有的黑暗时代在命令行通过电子邮件提交补丁,而不是通过 GitHub 或 GitLab 打开 Pull 请求。:)

请参阅glibc此处的贡献说明: https: //sourceware.org/glibc/wiki/Contribution%20checklist

  • 使用以下命令创建一个或多个补丁git format-patch
  • 用于git send-email --to=libc-alpha@sourceware.org将补丁发送到列表,--cc如果需要,用于引起特定维护人员的注意。
  • 如果您的补丁尚未经过审核,至少每周执行一次 Ping 操作

我尝试阅读和关注大量资源,但似乎没有一个是完整的,即:

  1. git:“发送电子邮件”不是 git 命令。请参阅“git --help”
  2. https://coderwall.com/p/qcsiew/setting-up-and-using-git-send-email-with-gmail
  3. https://coderwall.com/p/dp-gka/setting-up-git-send-email-with-gmail
  4. https://git-scm.com/docs/git-send-email#_use_gmail_as_the_smtp_server
  5. https://git-scm.com/docs/git-credential
  6. https://gist.github.com/jasonkarns/4354421
  7. https://gist.github.com/winksaville/dd69a860d0d05298d1945ceff048ce46
  8. 根据 @mcepl 于 2023 年 4 月 8 日在现已删除的答案中添加:[也不完整] https://git-send-email.io/

git send-email注意:为了贡献补丁,您需要使用的另一个项目是Buildroot(请参见此处:https: //buildroot.org/downloads/manual/manual.html#submitting-patches),它用于构建自定义嵌入式Linux 发行版。因此,如果也想为 Buildroot 解决这个问题,请参阅我的答案

git git-send-email

26
推荐指数
1
解决办法
1万
查看次数

git send-email 发送邮件失败

我正在尝试发送 git 补丁以供上游社区审核;但接收方没有收到消息;

我尝试将“ --to”更改为我的私人电子邮件 ID 之一,但即使如此,我的私人邮箱也没有收到此信息;

命令:

git send-email --no-chain-reply-to --from "Ganapathi Bhat <xxx@gmail.com>" --to linux-wireless@vger.kernel.org my_patch.patch
Run Code Online (Sandbox Code Playgroud)

输出:

Unable to initialize SMTP properly. Check config and use --smtp-debug. VALUES: server=smtp.gmail.com encryption=tls hello=yyy.yyy.com port=587 at /usr/lib/git-core/git-send-email line 1506
Run Code Online (Sandbox Code Playgroud)

命令:

git config -l

输出:

user.email=xxx@gmail.com
user.name=Ganapathi Bhat
sendemail.smtpencryption=tls
sendemail.smtpserver=smtp.gmail.com
sendemail.smtpuser=xxx@gmail.com
sendemail.smtpserverport=587
Run Code Online (Sandbox Code Playgroud)

该补丁应交付给社区进行审核,并且应出现在以下列表中: https ://patchwork.kernel.org/project/linux-wireless/list/

git smtp sendmail smtpclient git-send-email

3
推荐指数
1
解决办法
3122
查看次数

标签 统计

git ×2

git-send-email ×2

sendmail ×1

smtp ×1

smtpclient ×1