git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Kristoffer Haugsbakk" <code@khaugsbakk.name>
To: "Wu Zhenyu" <wuzhenyu@ustc.edu>
Cc: git@vger.kernel.org
Subject: Re: [question] How to customize git revert template
Date: Thu, 29 Feb 2024 16:18:20 +0100	[thread overview]
Message-ID: <9389c159-ba55-4329-9d86-bc95b321737f@app.fastmail.com> (raw)
In-Reply-To: <k4zvycdixqmntkyevdtsrswbfiklyj24mp6jhltnwwdswxromc@q3wtrivkbfbl>

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


  reply	other threads:[~2024-02-29 15:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-29 12:52 [question] How to customize git revert template Wu Zhenyu
2024-02-29 15:18 ` Kristoffer Haugsbakk [this message]
2024-03-03 14:44   ` Wu Zhenyu

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=9389c159-ba55-4329-9d86-bc95b321737f@app.fastmail.com \
    --to=code@khaugsbakk.name \
    --cc=git@vger.kernel.org \
    --cc=wuzhenyu@ustc.edu \
    /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;
as well as URLs for NNTP newsgroup(s).