Git commit.template isn't respected? #1552
IPWright83
started this conversation in
General
Replies: 2 comments 1 reply
-
We don't run the pre-commit or commit-message hook. (Don't know the exact names of these hooks; there are plenty of them around committing.) The plan was to wait for the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Related #1538 esp #1538 (comment) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It could well be I've just missed some configuration but I can't seem to get GitSavvy to respect a
commit.template
file that I've created?What I want to do is prefix my commit message with a format such as
feat[ticket-id]:
. I've created a pre-commit hook to run to generate this based on a branch name. I've currently set this globally usinggit config --global commit.template ~/.gitmessage
and I expected that to be at the start of my commit message, but it always seems to be empty? I've checked in VSCode and it seems to be picking it up fine.Is there a setting I'm missing or a way to get GitSavvy to respect this? Bonus points if it's possible to actually configure this at the repository level somehow so I don't use the same
~/.gitmessage
on all my repos.Beta Was this translation helpful? Give feedback.
All reactions