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

Re: [question] How to customize git revert template

From
Kristoffer Haugsbakk <code@khaugsbakk.name>
Date
Feb 29, 2024, 15:18 UTC
Message-ID
<9389c159-ba55-4329-9d86-bc95b321737f@app.fastmail.com>
In-Reply-To
<k4zvycdixqmntkyevdtsrswbfiklyj24mp6jhltnwwdswxromc@q3wtrivkbfbl>
Hi
On Thu, Feb 29, 2024, at 13:52, Wu Zhenyu wrote:
Show 15 quoted lines
> In https://git-scm.com/docs/git-revert
>
>> While git creates a basic commit message automatically
>
> How can I customize git revert template? e.g.,
>
> ```sh
> git config revert.template ~/.config/git/template
> ```
>
> TIA!
>
> --
> Best Regards
> Wu Zhenyu
I see no way to customize this message. Your only choices seem to be
1. This default
2. The “reference” style using `--reference`
So there doesn’t seem to be a template alternative here.
-- 
Kristoffer Haugsbakk
Previous: Wu ZhenyuNext: Wu Zhenyu
Message 2 of 3 in “[question] How to customize git revert template”
  1. Wu ZhenyuFeb 29, 2024
  2. Kristoffer HaugsbakkFeb 29, 2024
  3. Wu ZhenyuMar 3, 2024

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.