What git configuration is configured when using Linux and Windows?

I am a little confused with core.eol, core.autocrlf, core.safecrlf for git config.

http://git-scm.com/docs/git-config

I use Ubuntu and Widows.

I had ^ M and other problems before.

Can anyone suggest the best git configuration settings for this problem?

Thanks in advance.

+5
git linux windows-7
May 21 '11 at 12:08
source share
1 answer

As stated in Git on Windows (msysgit) - ending a Unix or DOS line , I would use:

git config --system core.autocrlf false 

This will avoid any automatic transformation of eol (see " Git on Windows: what do crlf values ​​mean? " For the exact value of this parameter value),

You can leave it true, as described in Git replacing LF with CRLF , but I prefer to install core.eol + some gitattribute files in order to fine-tune some of the files I want to change eol to.
See this answer for more details.

+8
May 21 '11 at 12:43
source share



All Articles