Git: why the \; doesn't work in config file for me?

Git for Windows.
I am learning Git. Quote git help config

:

The line that defines the value can be continued to the next line by ending it with \; reverse frame and end of line are removed.

I've tried this:

[user]
    name = Andrey\;
  Bushman

      

and this:

[user]
    name = 'Andrey\;
  Bushman'

      

and this:

[user]
    name = 'Andrey '\;
  'Bushman'

      

and this:

[user]
    name = 'Andrey \;'
  'Bushman'

      

instead of this (working option):

[user]
    name = Andrey Bushman

      

but I am getting the error: fatal: error in 6 line.

(this is the c line index \;

) for the command:

git config --global user.name

      

Why is this happening?

+3


source to share


1 answer


Perhaps because ";" is the punctuation symbol in this sentence. It is not part of the sequence of characters to be used to move to the next line, i.e. You should only use "\".



+6


source







All Articles