Custom Git Commit Message Template

How do I craft customized commit message template?

I would like to have something like:

  • Would it make sense to use Git for this project?
  • Is there a short way of addressing branches in Git?
  • How to make git work to push commits to GitHub via tor?
  • Getting github project upload error
  • Git: How to merge upstream changes without causing a merge commit?
  • How can I tell, from a script, if “git cherry-pick” fails?
  • # Short (50 chars or fewer) summary of changes
    
    # More detailed explanatory text
    

  • Modify git repo to allow forks to update without overwriting particular files
  • Travis CI - android build failed. No connected devices error
  • Find out git branch creator
  • Double commits in git history after `git format-patch`,`git am`, `git pull`
  • How to find last merge in git?
  • How to set patience as default git diff algorithm
  • One Solution collect form web for “Custom Git Commit Message Template”

    Add following to your ~/.gitconfig:

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

    enter image description here

    Create ~/.git-commit-message file with following content:

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

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

    Git Baby is a git and github fan, let's start git clone.