Ensure JetBrains products version is 2021.1 and later, and then execute under the project directory.
git config --local commit.template ~/.gitcommit
Remember edit your tempalte in ~/.gitcommit ahead.
~/.gitcommit