Custom Git Fixed Message Template

How to create an individual commit message template?

I would like to have something like:

# Short (50 chars or fewer) summary of changes # More detailed explanatory text 
+4
source share
1 answer

Add the following to your ~/.gitconfig

 [commit] template = ~/.git-commit-message 

enter image description here

Create a ~/.git-commit-message file with the following contents:

 # Short (50 chars or fewer) summary of changes # More detailed explanatory text 

Ref. commit.template at http://git-scm.com/docs/git-config

+4
source

All Articles