git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* config file not being copied from templates folder
@ 2019-05-09 18:45 Jack Zylkin
  2019-05-10 10:29 ` Duy Nguyen
  0 siblings, 1 reply; 2+ messages in thread
From: Jack Zylkin @ 2019-05-09 18:45 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: config file not being copied from templates folder
  2019-05-09 18:45 config file not being copied from templates folder Jack Zylkin
@ 2019-05-10 10:29 ` Duy Nguyen
  0 siblings, 0 replies; 2+ messages in thread
From: Duy Nguyen @ 2019-05-10 10:29 UTC (permalink / raw)
  To: Jack Zylkin; +Cc: Git Mailing List

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-05-10 10:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-09 18:45 config file not being copied from templates folder Jack Zylkin
2019-05-10 10:29 ` Duy Nguyen

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).