Re: convert crlf to eol on vendor branch overlay
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 8, 2011, 04:43 UTC
- Message-ID
- <7vy63l4ak6.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <inlsit$scv$1@dough.gmane.org>
"Neal Kreitzinger" <neal@rsss.com> writes:
Show 8 quoted lines
> How do I convert the eol's to LF? > > I tried this: > > vi .git/attributes > SRC/*/* text (convert these to LF eol on commit) > > $ git config core.eol lf (convert "text" attr files to LF eol on checkout)
Instead, how about something like:
$ git ls-files -z | xargs -0 perl -p -i -e 's/\r$//'
and then:
> $ git add . -A > $ git commit -m'convert eol' (should convert CRLF to LF)
?