Premise
Received the following error during code commit.
fatal: no email was given and auto-detection is disabled
Solution
This error is due to the fact that there’s no local user setting found. We need to update this setting which will be used to create logs, on code commit.
- Launch Git Bash.
- Run the following cmd
git config --global user.name "your_name"
git config --global user.email "your_email_id"

The above code sets the name and email id which will be used during code commit.
I’ve used the global tag to set this setting globally. Remove the global tag to apply this setting to the local repository only.
Thanks Piyush. This fixed my problem exactly as you described.
LikeLike
Thank a lot really. It fixed my problem too.
LikeLike
Fixed it , ty
LikeLike
My God thank you so much sir. Remain blessed 😇
LikeLike