1,报错如下
remote: Processing changes: refs: 1, done
remote: ERROR: commit 4b9b323: missing Change-Id in message footer
remote:
remote: Hint: to automatically insert a Change-Id, install the hook:
remote: gitdir=$(git rev-parse --git-dir); scp -p -P 29418 chenke@123.207.207.47:hooks/commit-msg ${gitdir}/hooks/
remote: and then amend the commit:
remote: git commit --amend --no-edit
remote: Finally, push your changes again
remote:
To ssh://123.207.207.47:29418/ApiServer
! [remote rejected] HEAD -> refs/for/master (commit 4b9b323: missing Change-Id in message footer)
error: failed to push some refs to 'ssh://123.207.207.47:29418/ApiServer'
原因是.git/hooks/commit-msg丢失,解决方案如下图
2,