last day (14 days later) » 

11:00 AM
0
A: How to configure default configuration for new Git repository?

ElpieKaySee TEMPLATE DIRECTORY of git-init. By default, when we initialize a new git repo, the contents under /usr/share/git-core/templates will be copied to this new repo's .git. So we can make a template for config here, which includes [core] ignoreCase = false For git-bash-for-windows, it's /m...

 
This does not answer the question. A file named config added on the template directory will be clobbered by Git during the git init.
Can you provide a working example?
 
@nowox Is your $GIT_TEMPLATE_DIR or init.templateDir set to the value different from /usr/share/git-core/templates?
 
No it points to usr/share/git-core/templates and I have added a config file in this template dir with the ignoreCase set to false
 
@nowox It should have worked. I've tested on both Windows and Ubuntu and it works as expected. What is .git/config like in your failed case?
 
11:00 AM
@nowox Sorry but gist is blocked in my network. I can't open the link.
 
No problem, I have included that gist in my question
 
hi nowox
is there init.templateDir in your global .gitignore
global .gitconfig
and have a try "git init foo --template /usr/share/git-core/templates"
 
No I don't think so
I haven't tried that yet.
Yup, tried it. Still ignorecase set to true
 
11:18 AM
unexpected. I can't figure it out.
do you have any other workground to have a try?
You don't have a system gitconfig, do you?
try "git config --global init.templateDir /usr/share/git-core/templates" and then "git init" a new repo again.
 
I am sure I can try on ubuntu and it will work if it did for you. I am on Cygwin and I am guessing the issue is coming from Git for Cygwin
Still the issue :(
 
i'm looking for a cygwin machine.
this is really a puzzle
by the way, what's your git version?
 
11:53 AM
git version 2.13.2
I am sure the problem is related to Cygwin and case insensitive Windows filesystem
Anyway thanks for your help
I wrote an email to the mailing list
 
My pleasure.
 

last day (14 days later) »