Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is .stCommitMsg in git global configuration file?

Tags:

git

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?!

like image 975
Mohsen Mirhoseini Avatar asked Nov 26 '16 11:11

Mohsen Mirhoseini


People also ask

What is git global config?

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.

What is stCommitMsg?

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 do I edit a .gitconfig file?

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.


1 Answers

The st in .stCommitMsg more than likely stands for SourceTree.

like image 147
Emerson Farrugia Avatar answered Sep 28 '22 10:09

Emerson Farrugia