Grégoire PARIS <postmaster@xxxxxxxxxxx> writes: >> You could, for example, have your template directory itself be a git > repository. > > I can and I do and indeed, that might be the reason behind this. > I made a PR to document this : https://github.com/git/git/pull/325 Let's take a look. > From: Grégoire PARIS <postmaster@xxxxxxxxxxx> > Date: Fri, 17 Feb 2017 22:33:40 +0100 > Subject: [PATCH] Document dotfiles exclusion on template copy > > Since there is no dotfile in the default template directory, there was > no point in making the check for . or .. more accurate when copying. Now > that you can customize the template directory, it would make sense, but > it's actually a good thing to at this because you would not want to have > your git directory copied in every git directory that is created should > you decide to put your template directory under version control. Plus it > might be used as a feature by people who would want to exclude some > files. OK. > See https://public-inbox.org/git/20170217204411.2yixhuazgczxmmxa@xxxxxxxxxxxxxxxxxxxxx/T/#t I do not think what was discussed there adds much. Drop this line. Instead, add your sign-off (Documentation/SubmittingPatches) here Signed-off-by: Grégoire PARIS <postmaster@xxxxxxxxxxx> > --- > Documentation/git-init.txt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Documentation/git-init.txt b/Documentation/git-init.txt > index 9d27197de8..e3b185cf86 100644 > --- a/Documentation/git-init.txt > +++ b/Documentation/git-init.txt > @@ -117,7 +117,7 @@ TEMPLATE DIRECTORY > ------------------ > > The template directory contains files and directories that will be copied to > -the `$GIT_DIR` after it is created. > +the `$GIT_DIR` after it is created, unless their name starts with a dot. "... that will be copied ..., unless they are dot" is not incorrect per-se, but perhaps rewriting the whole sentence, e.g. "Files and directories in the template directory whose name do not start with a dot will be copied to ...", may make it easier to read, I suspect.