git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: default commit message for a tree

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Apr 26, 2008, 02:01 UTC
Message-ID
<alpine.LFD.1.10.0804251859100.2813@woody.linux-foundation.org>
In-Reply-To
<524f69650804251839u56198808o8b7a66d9894fbbfc@mail.gmail.com>
On Fri, 25 Apr 2008, Steve French wrote:
Show 6 quoted lines
> 
> I created a file .git/commit-template with default text as follows:
> 
> [CIFS]
> 
> Signed-off-by: Steve French <sfrench@us.ibm.com>
You need to use
	    git-config commit.template .git/commit-template

(or use the whole absolute pathname to your template file). The pathname is relative to the working tree, not GIT_DIR.

		Linus
Previous: Steve FrenchNext: Steve French
Message 2 of 3 in “default commit message for a tree”
  1. Steve FrenchApr 26, 2008
  2. Linus TorvaldsApr 26, 2008
  3. Steve FrenchApr 26, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.