Git development
 help / color / mirror / Atom feed
From: Tian Yuchen <cat@malon.dev>
To: "Christian König" <christian.koenig@amd.com>, git@vger.kernel.org
Subject: Re: Problem with git send-email and --reply-to
Date: Sat, 25 Apr 2026 00:29:13 +0800	[thread overview]
Message-ID: <d83ee7a0-b5e8-445f-af93-91c78ef63ff8@malon.dev> (raw)
In-Reply-To: <26f3a5b2-1656-482a-9349-ca3592b8bba1@amd.com>

On 4/24/26 21:13, Christian König wrote:
> Hello everybody,
> 
> either I've found a bug or there is something absolutely not obvious going on here with git send-email.
> 
> I want to use the --reply-to option with git send-email to make sure that people reply to my AMD mail address and not my gmail address used for sending mails.
> 
> When I use the option on the command line it works fine, but when I put that into my .gitconfig it doesn't seem to have any effect.
> 
> Any idea what could be wrong here?
> 
> .gitconfig looks like this:
> 
> [user]
>      name = Christian König
>      email = christian.koenig@amd.com
> [sendemail]
>      reply-to = christian.koenig@amd.com
> 
> Thanks in advance,
> Christian.

The most straightforward solution might be:

[format]
     headers = "Reply-To: christian.koenig@amd.com"

This is equivalent to manually adding this line at the beginning of the 
email. In most cases, there shouldn’t be any problems, I guess?

Thanks, Yuchen


      parent reply	other threads:[~2026-04-24 16:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-24 13:13 Problem with git send-email and --reply-to Christian König
2026-04-24 13:42 ` Ramsay Jones
2026-04-24 16:29 ` Tian Yuchen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d83ee7a0-b5e8-445f-af93-91c78ef63ff8@malon.dev \
    --to=cat@malon.dev \
    --cc=christian.koenig@amd.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox