Как исправить ошибку git fatal: unable to auto-detect email address при создании коммита?

10

Здравствуйте! Не могу создать cоmmit, пишет "Кто Вы, назовите свое имя". В Git это выглядит так 

вуа@DESKTOP-0AABKUD MINGW64 ~
$ cd /c/xampp/htdocs/

вуа@DESKTOP-0AABKUD MINGW64 /c/xampp/htdocs
$ ls -;a
ls: cannot access '-': No such file or directory
bash: a: command not found

вуа@DESKTOP-0AABKUD MINGW64 /c/xampp/htdocs
$ ls -la
total 20
drwxr-xr-x 1 вуа 197121 0 сен 14 17:31 ./
drwxr-xr-x 1 вуа 197121 0 авг 14 22:34 ../
drwxr-xr-x 1 вуа 197121 0 сен 14 17:31 kinomonster/

вуа@DESKTOP-0AABKUD MINGW64 /c/xampp/htdocs
$ cd kinomonster/

вуа@DESKTOP-0AABKUD MINGW64 /c/xampp/htdocs/kinomonster (master)
$ ls -la
total 43
drwxr-xr-x 1 вуа 197121 0 сен 14 17:31 ./
drwxr-xr-x 1 вуа 197121 0 сен 14 17:31 ../
drwxr-xr-x 1 вуа 197121 0 сен 14 17:55 .git/
-rw-r--r-- 1 вуа 197121 602 сен 5 15:09 extends.class.php
-rw-r--r-- 1 вуа 197121 925 авг 31 09:23 file.php
-rw-r--r-- 1 вуа 197121 1745 авг 21 11:14 index.php
-rw-r--r-- 1 вуа 197121 388 сен 4 10:27 oop.php
-rw-r--r-- 1 вуа 197121 1252 сен 10 22:33 oop2.php
-rw-r--r-- 1 вуа 197121 1736 авг 31 15:41 parsing.php
-rw-r--r-- 1 вуа 197121 1226 авг 31 13:09 parsing1.php
-rw-r--r-- 1 вуа 197121 2169 авг 27 08:44 player.php
-rw-r--r-- 1 вуа 197121 106 авг 29 16:06 test.txt
-rw-r--r-- 1 вуа 197121 36 авг 29 16:23 test2.txt
drwxr-xr-x 1 вуа 197121 0 авг 29 11:57 xml/

вуа@DESKTOP-0AABKUD MINGW64 /c/xampp/htdocs/kinomonster (master)
$ git init
Reinitialized existing Git repository in C:/xampp/htdocs/kinomonster/.git/

вуа@DESKTOP-0AABKUD MINGW64 /c/xampp/htdocs/kinomonster (master)
$ git remote add origin https://[email protected]/Bogatyi/kinomonster.git
fatal: remote origin already exists.

вуа@DESKTOP-0AABKUD MINGW64 /c/xampp/htdocs/kinomonster (master)
$ git add --all

вуа@DESKTOP-0AABKUD MINGW64 /c/xampp/htdocs/kinomonster (master)
$ git commit -m "First commit"

*** Please tell me who you are.

Run

git config --global user.email "[email protected]"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got '▒▒▒@DESKTOP-0AABKUD.(none)')

Подскажите пожалуйста, что нужно сделать чтобы продолжить работу?

linux
git

2 ответов

5

Git просит сначала представиться и предлагает указать email и имя, чтобы в коммитах это отображалось и по умолчанию использовались эти данные.

Нужно ввести что предлагает гит:

git config --global user.email "[email protected]"
git config --global user.name "Your Name"

затем остальные команды

2

Спасибо

Sign up or Log in to write an answer