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

Re: [question] How to customize git revert template

From
Wu Zhenyu <wuzhenyu@ustc.edu>
Date
Mar 3, 2024, 14:44 UTC
Message-ID
<6x4ybwweqseahgnfdvzm7jhrtyk5q3of7fq6bmx6kei7bqf56s@dgd57y57m5je>
In-Reply-To
<9389c159-ba55-4329-9d86-bc95b321737f@app.fastmail.com>
Can git support the feature to customize template? Is it possible?
TIA!
On Thu, Feb 29, 2024 at 04:18:20PM +0100, Kristoffer Haugsbakk wrote:
Show 30 quoted lines
> Hi
> 
> On Thu, Feb 29, 2024, at 13:52, Wu Zhenyu wrote:
> > 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
> 
> 
-- 
Best Regards
Wu Zhenyu
Previous: Kristoffer Haugsbakk
Message 3 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.