I found this in my git global configuration file ~/.gitconfig
...
[commit]
template = {my user root folder}/.stCommitMsg
I have no idea what is the usage, and also there was no file in this name in my user root folder!
Does any one knows how it works? and is it possible to have a template for git commits?!
The git config command is a convenience function that is used to set Git configuration values on a global or local project level. These configuration levels correspond to . gitconfig text files. Executing git config will modify a configuration text file.
stCommitMsg , asking for a commit message. Ideally, the template would provide a structure for you to follow while making a commit message. Commented lines beginning with # can help to give hints.
How to do a git config global edit? The global git config is simply a text file, so it can be edited with whatever text editor you choose. Open, edit global git config, save and close, and the changes will take effect the next time you issue a git command. It's that easy.
The st
in .stCommitMsg
more than likely stands for SourceTree.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With