Just started working with git 15 minutes ago and already trouble ... damn.
Well, just as i wrote in the headline, im currently working with the git-scm book here: http://git-scm.com/book
In 2.1 - Getting a Git repository, it says:
If you’re starting to track an existing project in Git, you need to go to the project’s directory and type
$ git init
Thats exactly what im doing, but somehow, i get this error message here:
fatal: bad numeric config value 'auto' for 'core.autocrlf' in C:\Program Files
(x86)\Git(etc/gitconfig: invalid unit
I configured everything just as it says in the book ... im kinda helpless here, especially because i got absolutely no experience with git and google doesnt seem to be very helpful in that case. ._.
Edit: Heres a screenshot, maybe it helps you:
Try a
I would then advise for a:
(see "Why should I use core.autocrlf=true in Git?"; using
core.eol
settings per files is more precise than using a repo-wide global setting)You could set it back in the system config if you want:
But the main point is 'auto' isn't a valid value:
true
,false
orinput
are, as detailed here.FernandoZ suggests in the comments: