missing Change-Id in commit message footer

在提交代码的时候报错failed to push some refs to 'ssh://[email protected]:29418/sdnm/

原因:git log看一下,原因是提交的commit没有生成change-id

解决方法:

1、打开git bash(注意是cmd)输入以下2提示的内容

$ gitdir=$(git rev-parse --git-dir); scp -p -P 29418 [email protected]
:hooks/commit-msg ${gitdir}/hooks/

2、git commit --amend。这里进入编辑页面,直接  :wq

3、再次git log就可以看到change-id了

4、git push提交代码