All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Zorba" <cr@altmore.co.uk>
To: git@vger.kernel.org
Subject: Re: turn off "LF will be replaced by CRLF" thingy
Date: Mon, 29 Dec 2008 16:18:23 -0000	[thread overview]
Message-ID: <gjat90$5la$4@ger.gmane.org> (raw)
In-Reply-To: 37fcd2780812290758q3ef989c0w5156da3098d06068@mail.gmail.com

Thanks Dmitry,

So I have two options to do this - edit the files direct or issue a command, 
thank you !

Now, my next problem is taking all my changes ($ git add .  -> puts 5k files 
into index, with LF in place of CRLF) out of the index.

Because I haven't committed anything in this repo yet...

$ git reset --hard

....falls over, as it has no HEAD to reset to

I think I read how to do this in a tutorial somewhere, maybe with 
git-checkout, but I'm searching and can't find it.
Any kind soul can point me in the right direction ?

thanks !
"Dmitry Potapov" <dpotapov@gmail.com> wrote in message 
news:37fcd2780812290758q3ef989c0w5156da3098d06068@mail.gmail.com...
>> 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 ?
>
> git config core.autocrlf false
>
> or if you want to ensure that all your text files have only LF then
>
> git config core.autocrlf input
>
> or if you want to disable conversion for some specific files then you can
> use 'crlf' attribute. See 'gitattributes' for more information.
> http://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
>
> Dmitry 

  reply	other threads:[~2008-12-29 16:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-29 15:38 turn off "LF will be replaced by CRLF" thingy Zorba
2008-12-29 15:55 ` Zorba
2008-12-29 15:58 ` Dmitry Potapov
2008-12-29 16:18   ` Zorba [this message]
2008-12-29 17:29     ` david
2008-12-30  0:48       ` Zorba
2008-12-30  2:13         ` Boyd Stephen Smith Jr.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='gjat90$5la$4@ger.gmane.org' \
    --to=cr@altmore.co.uk \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.