Reputation: 37
I've used git many times before but since I made a new Linux installation, I've not been able to commit my changes. I keep receiving this error:
*** 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: empty ident name (for <[email protected]>) not allowed
So of course, I run the steps provided with my own credentials and I keep receiving the same error every time I try to commit changes.
git config -l --show-origin
file:/home/george/.gitconfig [email protected]
file:/home/george/.gitconfig user.name=George Lastname
file:.git/config core.repositoryformatversion=0
file:.git/config core.filemode=true
file:.git/config core.bare=false
file:.git/config core.logallrefupdates=true
file:.git/config remote.origin.url=https://github.com/mygithub/repo
file:.git/config remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
file:.git/config branch.master.remote=origin
file:.git/config branch.master.merge=refs/heads/master
Upvotes: 0
Views: 56
Reputation: 76804
Git needs to know your personal name (user.name
) and email address (user.email
) in order to embed these values in your commits and tags. In your case, you have a valid email address, but you haven't specified a personal name.
You should run the git config
command that sets user.name
as suggested above. Note that this is not your username on any system, but your personal name (e.g., "Pat Doe" or "Sam Smith"). Credentials are unrelated to this in any way.
Upvotes: 1