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

config file not being copied from templates folder

From
JZJack Zylkin <jzylkin@gmail.com>
Date
May 9, 2019, 18:45 UTC
Message-ID
<CACG5jMxnS1AR4YjuRu1woBKfrC+R-Fr9qbBK9L2L9D6Vfp9dig@mail.gmail.com>
The “git init” documentation for the “Template Directory” states that:

“Files and directories in the template directory whose name do not start with a dot will be copied to the $GIT_DIR after it is created.”

However, I put a file called “config” in this directory, and it was not copied to the .git directory after running “git init”. Instead there is always the same old default config file there (and I don’t know where this file comes from).

I don’t know any other way of changing the default local config file used for new repos. I really want to change this default config file because I want to use “symlinks=true” in all new repos, regardless of what git was told to do about symlinks when it was installed.

(In my case, the chocolatey installer that installs git seems to disable symlinks no matter what).

-- 
Jack Zylkin
Next: Duy Nguyen
Message 1 of 2 in “config file not being copied from templates folder”
  1. Jack ZylkinMay 9, 2019
  2. Duy NguyenMay 10, 2019

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.