Gerrit error when ChangeId in commit messages are missing

Check if your commits have Change-Id: ... in their descriptions. Every commit should have them.

you can "git log" to review your commits have  Change-Id

If no, use git rebase -i to reword the commit messages and add proper Change-Ids (usually this is a SHA1 of the first version of the reviewed commit).

For the future, you should install commit hook, which automatically adds the required Change-Id.

Execute scp -p -P 29418 username@your_gerrit_address:hooks/commit-msg .git/hooks/in the repository directory or download them fromhttp://your_gerrit_address/tools/hooks/commit-msg and copy to .git/hooks

scp -p -P 29418 eyacdfn@gerrit.sh.cn.ao.ericsson.se:hooks/commit-msg .git/hoos/

原文地址:https://www.cnblogs.com/GODYCA/p/2853392.html