How to fix Git Push failure due to unregistered email Id, although email Id is correct?
When a fresh Git clone and push is tried with a Git client, the error below is seen:
remote: error: commit b7fa66c: email address email@example.com is not registered
in your account, and you lack 'forge author' permission.
remote: The following addresses are currently registered:
remote: To register an email address, visit:
Note: Email Id and hostname used here are examples
Sometimes, the username is appended with hostname and considered as email Id in Git clients. To fix this, the correct email Id should be updated in Git config file of local system where Git client is installed. Below command helps in updating the Git global config file:
git config --global user.name "username"
git config --global user.email <user_email_Id>
In general, there are three git configs available in a local system:
- git config --system
git configurations at the system level which takes the highest precedence over all users and repositories locally.
- git config --global
git configuration at the user level which takes precedence over user-level all repositories locally.
- git config --local
git configuration for a particular repository
Internal reference: #124766