When do push, there is following error:
lving deltas: 100% (3/3)
remote: Processing changes: refs: 1, done
remote:
remote: ERROR: In commit b3f23e56cb21a5fb58a8c47dd6d68566a5b6f849
remote: ERROR: committer email address eyuqifu@etos21.etoslab.cn.ao.ericsson.se
remote: ERROR: does not match your user account.
remote: ERROR:
remote: ERROR: The following addresses are currently registered:
remote: ERROR: sunshine.fu@ericsson.com
remote: ERROR:
remote: ERROR: To register an email address, please visit:
remote: ERROR: https://gerrit.ericsson.se/#/settings/contact
remote:
Reason:You didn’t set your name and email before commit code, so when you push to Gerrit, Gerrit don’t know who you’re. Solution:Set your name and email and then amend previous commit
$git config --global user.name "<Your name in outlook>" (e.g. Julie Zhu Z)
$git config --global user.email "<your_email_address>" (e.g. julie.z.zhu@ericsson.com)
$git commit --amend --allow-empty --reset-author
$git pull --rebase