We are working on tickets, and when we use the ticket number in the git commit message on the first line, then the ticket is updated with the commit message.
To make things simple we always work on a branch with the commit number.
Now I'd like to be presented with a commit message where the ticket number would already be filled in.
It must be possible, because the branch is already in the commit template, but in comments which are removed by git. I have scoured the docs and the 'net a couple of times, but I must be looking for the wrong words, because I cannot find it.
Can anyone help?