What does Please Tell me who you are in git mean?

Asked

Viewed 677 times

3

I am totally new in this area of technology, I am following a course but I stopped. When I try to give a git commit -m "commit inicial" the string message in git is this:

Author identity unknown

*** 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 'Kleber@Kleber-PC.(none)')

From here do not know what to do and how to arrange so that it does not appear again, could help me please? Thanks

1 answer

2

That means Git doesn’t know who you are. To work it needs an Email and a name to identify you.

But why?

Git uses your email address to associate your name with any commit of your own. After submitting your commits to a public repository on Github, for example, authorship metadata is also published. This means that whoever accesses your repository will be able to see that it was you who made X changes to the code and not someone else.

How to solve?

Let’s assume that your Email is [email protected].
You will need to type in these two commands that are necessary to identify you, rest assured that this step you will only need to do once:

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

Done this the error will be fixed.

  • If I’ve solved your question, don’t forget to mark it as a response in the green tick. This makes more people with the same doubt that you can easily find the solution to the problem.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.