Hello all,
I'm trying to standardise the platform for the developers, one of my needs would be to commit the .git/config so that everybody have the same CRLF config without forgetting to set it by hand.
Thanks,
Nicolas.
Hello all,
I'm trying to standardise the platform for the developers, one of my needs would be to commit the .git/config so that everybody have the same CRLF config without forgetting to set it by hand.
Thanks,
Nicolas.
If you're using a Unix family operating system I would recommend just creating a symbolic link.
ln -s .git/config git-config
git add git-config
git commit -m "Now tracking git config file"
I have always found the autocrlf
config property problematic.
(as expressed in my answer Git 1.6.4 beta on Windows (msysgit) - Unix or DOS line termination)
Note: msysgit issue 538 for setting it to true (which is the default value set by the msysgit installer), but I am not convinced.
I would prefer one of the three following solutions for:
1/ Using the new config setting core.eol
(1.7.2+)
Sets the line ending type to use in the working directory for files that have the text property set.
Alternatives are 'lf
', 'crlf
' and 'native
', which uses the platform's native line ending.
The default value is native.
2/ a checkout/checking .gitattribute
.
See gitattributes man page:
crlf
or core.autocrlf
is the way to record in a .gitattributes
file what is was previously a local config attribute.
3/ a git attribute filter driver which can:
.gitattributes
) able to be pushed anywhere.