Custom Git Commit Message Template

How do I craft customized commit message template?

I would like to have something like:

  • git status: what is UU and why should add/rm fix it?
  • Setting up a complex git alias
  • capistrano problem
  • Git removing upstream from local repository
  • Removing sensitive data from Git. “fatal: ambiguous argument 'rm'”
  • Git clone unable to create file
  • # Short (50 chars or fewer) summary of changes
    
    # More detailed explanatory text
    

  • Show the log for a different branch
  • GitHub - How to revert changes to previous state
  • Using GIT_SSH_COMMAND in Git for Windows
  • Find and restore a deleted file in a Git repository
  • How to clone from a github repo and then run npm install on puppet
  • format-patch for a single file
  • 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.