git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Problem with git send-email and --reply-to

From
Tian Yuchen <cat@malon.dev>
Date
Apr 24, 2026, 16:29 UTC
Message-ID
<d83ee7a0-b5e8-445f-af93-91c78ef63ff8@malon.dev>
In-Reply-To
<26f3a5b2-1656-482a-9349-ca3592b8bba1@amd.com>
On 4/24/26 21:13, Christian König wrote:
Show 20 quoted lines
> 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
Previous: Ramsay Jones
Message 3 of 3 in “Problem with git send-email and --reply-to”
  1. Christian KönigApr 24, 2026
  2. Ramsay JonesApr 24, 2026
  3. Tian YuchenApr 24, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.