美文网首页
git missing Change-Id in commit

git missing Change-Id in commit

作者: 明明就_c565 | 来源:发表于2023-09-21 17:12 被阅读0次

    问题

    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 

    相关文章

      网友评论

          本文标题:git missing Change-Id in commit

          本文链接:https://www.haomeiwen.com/subject/vygopdtx.html