git missing Change-Id in commit
2023-09-21 本文已影响0人
明明就_c565
问题
remote: ERROR: commit afd13d9: 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 heweiwei@review.xxx.cn:hooks/commit-msg ${gitdir}/hooks/
remote: and then amend the commit:
remote: git commit --amend --no-edit
remote:
error: failed to push some refs to 'ssh://review.xxx.cn:29418/ArcherDT/vdi-server'
解决
gitdir=$(git rev-parse --git-dir)
scp -O -P 29418 heweiwei@review.xxx.cn:hooks/commit-msg ${gitdir}/hooks/
git commit --amend --no-edit