in Win 10 I am writing commands from the Git-Bash console in the Open Server tabs 1 scrin

after the command: git commit -m "first commit" 2 scrin after the command: git commit -m "first commit"

3 scrin 4 scrin

  • one
    Please do not post screenshots but text (directly copy from the console). Search engines do not know how to index the text in the pictures and will not learn in the near future. - Nick Volynkin

1 answer 1

user.name and user.email are the name and email of the author of the code.

These settings are needed in order to sign commits . Without them, commit cannot be created.

Note that there is no $ before the second line. It seems that you somehow copied them together, or there is something wrong with the quotes. The result is a syntax error command git config .

enter image description here

Run the commands one at a time. As user.name usually use their own name.

 git config --global user.email 'username@mail.ru' git config --global user.name 'Name Surname' 

When you complete this configuration, you can create commits.

  • And the rest is doing everything right, lacking only the initial setting. - Nick Volynkin
  • something is wrong everything is exactly (user @ DESKTOP-OKASEM6 MINGW32 /d/sites/mm.loc (master) $ git config --global user.email "justfalk@mail.ru" $ git config --global user.name "MailaGoogle" usage: git config [<options>] and gives all the same after - Fin
  • @Fin, you probably need to learn how to work in the shell. - 0andriy
  • @Fin you yourself do not enter $ from the keyboard? After each command, press Enter? - Nick Volynkin
  • @Fin checked - your commands work for me. Directly copied to the console and executed. - Nick Volynkin