Git init - invalid numeric configuration value 'auto' for 'core.autocrlf' in

Just started working with git 15 minutes ago and the problem is already ... damn.

Well, as I wrote in the title, im currently working with the git -scm book here: http://git-scm.com/book

B 2.1. Getting the git repository :

If you start tracking an existing project in Git, you need to go to the project directory and enter

$ git init

This is exactly what I am 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 set everything up just like he says in the book ... im kinda helpless here, especially since I have absolutely no experience with git, and google doesn't seem to help much in this case .._.

Edit: Heres a screenshot, maybe this will help you:

._.

+4
1

git config --system --unset core.autocrlf

:

git config --global core.autocrlf false

(. " core.autocrlf = true Git?", core.eol , )

, :

git config --system core.autocrlf false

: "auto" : true, false input .

+6

Source: https://habr.com/ru/post/1523487/


All Articles