* [question] How to customize git revert template
@ 2024-02-29 12:52 Wu Zhenyu
2024-02-29 15:18 ` Kristoffer Haugsbakk
0 siblings, 1 reply; 3+ messages in thread
From: Wu Zhenyu @ 2024-02-29 12:52 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [question] How to customize git revert template
2024-02-29 12:52 [question] How to customize git revert template Wu Zhenyu
@ 2024-02-29 15:18 ` Kristoffer Haugsbakk
2024-03-03 14:44 ` Wu Zhenyu
0 siblings, 1 reply; 3+ messages in thread
From: Kristoffer Haugsbakk @ 2024-02-29 15:18 UTC (permalink / raw)
To: Wu Zhenyu; +Cc: git
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [question] How to customize git revert template
2024-02-29 15:18 ` Kristoffer Haugsbakk
@ 2024-03-03 14:44 ` Wu Zhenyu
0 siblings, 0 replies; 3+ messages in thread
From: Wu Zhenyu @ 2024-03-03 14:44 UTC (permalink / raw)
To: Kristoffer Haugsbakk; +Cc: git
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:
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-03-04 2:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-29 12:52 [question] How to customize git revert template Wu Zhenyu
2024-02-29 15:18 ` Kristoffer Haugsbakk
2024-03-03 14:44 ` Wu Zhenyu
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).