# config file not being copied from templates folder

2 messages from 2019-05-09 to 2019-05-10. Participants: Jack Zylkin, Duy Nguyen.
Thread: https://gitlist.dev/t/51061

## Jack Zylkin, 2019-05-09 18:45

Subject: config file not being copied from templates folder
Message-ID: <CACG5jMxnS1AR4YjuRu1woBKfrC+R-Fr9qbBK9L2L9D6Vfp9dig@mail.gmail.com>
URL: https://gitlist.dev/e/CACG5jMxnS1AR4YjuRu1woBKfrC%2BR-Fr9qbBK9L2L9D6Vfp9dig%40mail.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

```

## Duy Nguyen, 2019-05-10 10:29

Subject: Re: config file not being copied from templates folder
Message-ID: <CACsJy8C__PCufU2L9F0OWNa1WaXncWKKNp7x7HLUxHLhmUSqLw@mail.gmail.com>
URL: https://gitlist.dev/e/CACsJy8C__PCufU2L9F0OWNa1WaXncWKKNp7x7HLUxHLhmUSqLw%40mail.gmail.com
In-Reply-To: <CACG5jMxnS1AR4YjuRu1woBKfrC+R-Fr9qbBK9L2L9D6Vfp9dig@mail.gmail.com>

```
On Fri, May 10, 2019 at 2:07 AM Jack Zylkin <jzylkin@gmail.com> wrote:
>
> 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).

What version are you using? Seems to work for me.

> 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).
-- 
Duy

```
