git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: turn off "LF will be replaced by CRLF" thingy

From
ZZorba <cr@altmore.co.uk>
Date
Dec 29, 2008, 15:05 UTC
Message-ID
<gjaru8$14g$4@ger.gmane.org>
In-Reply-To
<gjaqta$tg7$4@ger.gmane.org>
OK, lets be brave and see if I can work this out:
Tutorial says:

"The git configuration file contains a number of variables that affect the git command's behavior. .git/config file for each repository is used to store the information for that repository, and $HOME/.gitconfig is used to store per user information to give fallback values for .git/config file. The file /etc/gitconfig can be used to store system-wide defaults."

.git/config
======
[core]
 repositoryformatversion = 0
 filemode = false
 bare = false
 logallrefupdates = true
 symlinks = false
 ignorecase = true

$ echo $HOME gives: c\docs and settings\<my name>

$HOME\.gitconfig
=============
[gui]
 recentrepo = C:/Documents and Settings/conorr/Desktop/TEMP
 recentrepo = C:/Documents and Settings/conorr/Desktop/TEMP/swproj
[user]
 email = cr@altmore.co.uk
 name = Conor Rafferty
/etc/gitconfig  (under Git installation)
===============================
[core]
 symlinks = false
 autocrlf = true
[color]
 diff = auto
[pack]
 packSizeLimit = 2g
[help]
 format = html

Then tuturial -> the two settings are core.autocrlf and core.safecrlf

So I should set the autocrlf=false in the etc/config file I'm guessing? lets try that

"Zorba" <cr@altmore.co.uk> wrote in message news:gjaqta$tg7$4@ger.gmane.org...

Show 20 quoted lines
> Dear All,
>
> I was just in the process of creating our first live version on git (5k+ 
> files), when I noticed this in the output of
>
> $ git add .
>
> being "Warning: LF will be replaced by CRLF in <filename>"
> about 500 times !!
>
> I'd rather not let git change any files, many of which are PHP that run on 
> Apache
> I think I remember reading that this is a config option that gets swithced 
> on by default on windows (which we are running git on)
>
> how do I switch it off ?
>
> thanks
>
> 
Previous: ZorbaNext: Dmitry Potapov
Message 2 of 7 in “turn off "LF will be replaced by CRLF" thingy”
  1. ZorbaDec 29, 2008
  2. ZorbaDec 29, 2008
  3. Dmitry PotapovDec 29, 2008
  4. ZorbaDec 29, 2008
  5. david@lang.hmDec 29, 2008
  6. ZorbaDec 30, 2008
  7. Boyd Stephen Smith Jr.Dec 30, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.