Please tell me who you are git ошибка

Пытаюсь залить проект на Github,но получаю такую ошибку ???

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  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 'user@user-��.(none)')

Как быть? В первые работаю с гитом.

задан 20 мар 2017 в 10:40

elik's user avatar

2

Git Вам явно намекает, что Вам нужно сделать. Также он говорит о том, что он попытался уже сам определить, но не получилось.

Скорее всего Вам нужны такие команды

git config --global user.email "elik@example.com"
git config --global user.name "elik"

(эмейл конечно свой напишите).

Если же Вы на работе это делаете, то лучше написать свое полное имя и рабочую почту.

git config --global user.email "vpupkin@company.com"
git config --global user.name "Vasiliy Pupkin"

ответ дан 20 мар 2017 в 10:51

KoVadim's user avatar

KoVadimKoVadim

112k6 золотых знаков91 серебряный знак158 бронзовых знаков

4

Для решения проблемы необходимо:

  git config --global user.email "you@gmail.com"
  git config --global user.name "Vasua Pupkin"

Потом:

git remote add origin https://github.com/vasilukwolf/Random-Quote-Machine
git checkout -b 1-UserStroty-bla-bla
git add .
git commit -m "1-Task-bla-bla"
git checkout master
git merge 1-UserStroty-bla-bla
git push origin master

Если что-то в вдруг после коммита не так, и забыли:

git checkout -- *

Если закомитили и затупили:

git reset HEAD

Пример нормального workflow:
введите сюда описание изображения

ответ дан 20 мар 2017 в 11:02

Dima Vasiluk's user avatar

Dima VasilukDima Vasiluk

2,3463 золотых знака19 серебряных знаков47 бронзовых знаков

4

Если используете GitHub Desktop, зайдите File—>Options—>Git.
Проверьте, чтобы всё было правильно заполнено, и нажмите Save. Должно заработать.

ответ дан 5 окт 2018 в 21:17

axdrv's user avatar

axdrvaxdrv

8647 серебряных знаков18 бронзовых знаков

Search existing issues

  • I have searched the issue tracker and confirmed that I was unable to find existing issues for the problem I am experiencing.

The problem

uthor identity unknown

*** Please tell me who you are.

Run

git config —global user.email «you@example.com»
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 ‘hp@DESKTOP-6UALG5U.(none)’)

Release version

cersion 2.9.12

Operating system

windows 10

Steps to reproduce the behavior

No response

Log files

No response

Screenshots

uthor identity unknown

*** Please tell me who you are.

Run

git config —global user.email «you@example.com»
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 ‘hp@DESKTOP-6UALG5U.(none)’)

Additional context

no other context

If you are a developer, it is very likely that you have encountered the «Please tell me who you are» error message while using Git. This error is usually caused by an incorrect or missing Git identity configuration. Git identity is essential because it helps you to identify the author of the commits you make. In this guide, we will show you how to set your Git identity to avoid the «Please tell me who you are» error.

Prerequisites

Before we get started, you need to have Git installed on your system. If you do not have Git installed, you can download it from the official Git website (https://git-scm.com/downloads).

Setting Your Git Identity

To set your Git identity, you need to configure your name and email address. Here are the steps to do this:

Open your terminal or command prompt.

Type the following command to set your name:

git config --global user.name "Your Name"

Replace «Your Name» with your actual name.

Type the following command to set your email address:

git config --global user.email "youremail@example.com"

Replace «youremail@example.com» with your actual email address.

Verify that your Git identity has been set correctly by typing the following command:

git config --list

This command will display your Git configuration, including your name and email address.

FAQ

Q1. Why do I need to set my Git identity?

A1. Setting your Git identity helps you to identify yourself as the author of the commits you make. It also helps other developers to understand who made the changes.

Q2. What happens if I do not set my Git identity?

A2. If you do not set your Git identity, Git will prompt you to set it when you make your first commit. If you ignore this prompt, you will encounter the «Please tell me who you are» error.

Q3. Can I set my Git identity on a per-project basis?

A3. Yes, you can set your Git identity on a per-project basis by omitting the —global option in the Git config command.

Q4. Can I set multiple Git identities on the same system?

A4. Yes, you can set multiple Git identities on the same system by specifying a different name and email address for each identity. You can do this by omitting the —global option in the Git config command.

Q5. How do I change my Git identity?

A5. To change your Git identity, simply run the Git config command again with the new name and email address.

Conclusion

Setting your Git identity is a crucial step in using Git, and it helps you to avoid the «Please tell me who you are» error. By following the steps outlined in this guide, you can easily set your Git identity and start making commits. If you encounter any issues or have any questions, please refer to the FAQ section or consult the Git documentation.

Первое, что вам следует сделать после установки Git — указать ваше имя и адрес электронной почты. Это важно, потому что каждый коммит в Git содержит эту информацию, и она включена в коммиты, передаваемые вами, и не может быть далее изменена:

Для этого в консоли выполите следующие комманды:

git config --global user.name "Vasya Pupkin"
git config --global user.email "[email protected]"

Первоначальная настройка Git

Commit failed - exit code 128 received, with output: '*** 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 '[email protected].(none)')'

В ошибке прямо это и написано если причитаться =)

Git - Author identity unknown

# git commit -m "Initial commit"

Author identity unknown

*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  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 'root@8b4ed5e4957e.(none)')

If you are trying to commit code to your git repository and you get Author identity unknown, then simply follow the two command instructions displayed.

Step 1: set user email

In the terminal run the below command with your email id for git,

git config --global user.email "you@example.com"

Step 2: set user name

In the terminal run the below command with your email id for git,

git config --global user.name "user name"

Now try to do a commit on your local branch,

% git commit -m "initial commit"
[master (root-commit) 3ebcd44] initial commit
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 MyClass.java

Понравилась статья? Поделить с друзьями:
  • Po130 код ошибки
  • Please locate it now ошибка самп
  • Playkey ошибка игры
  • Please check mei driver is installed ошибка
  • Please check manual mode dram calculator ошибка