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 15:55:37 -0000 [thread overview]
Message-ID: <gjaru8$14g$4@ger.gmane.org> (raw)
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...
> 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
>
>
next prev parent reply other threads:[~2008-12-29 15:57 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 [this message]
2008-12-29 15:58 ` Dmitry Potapov
2008-12-29 16:18 ` Zorba
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='gjaru8$14g$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.