git push 时:报missing Change-Id in commit message footer的错误

 1. 一般而言,按照提示执行以下两个命令即可生成新的Change-id

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

  2. 当执行完后,提交还是报missing Change-Id in commit message footer ,但是git log发现这次提交已经有了change-id , 原因其实是,之前的某次commit或合并未生成change-id,使用git reset --soft  commit-id(没有生成change-id的前一次的commit_id),然后重新commit即可;

引用https://www.cnblogs.com/zndxall/p/9603834.html

猜你喜欢

转载自www.cnblogs.com/guanbin-529/p/10534570.html