本文主要是介绍ERROR missing Change-Id in commit message footer,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Today, my first day of contributing code to another new project.
I failed to push commits to Gerrit with the error ‘ERROR: missing Change-Id in commit message footer’.
After googled, I found my answer already offered by Gerrit that is the Gerrit has been configured always requiring a Change-Id in the commit message.
And the simple way to fix this is to install a hook to automatically insert Change-Id on each commit.
either way below could obtain the hook from Gerrit for you:
$ scp -p -P 29418 <your username>@<your Gerrit review server>:hooks/commit-msg <local path to your git>/.git/hooks/
$ curl -Lo <local path to your git>/.git/hooks/commit-msg <your Gerrit http URL>/tools/hooks/commit-msg
More info please trace: https://gerrit-review.googlesource.com/Documentation/cmd-hook-commit-msg.html
这篇关于ERROR missing Change-Id in commit message footer的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!