1. 程式人生 > 其它 >ERROR: commit 7405614: missing Change-Id in message footer

ERROR: commit 7405614: missing Change-Id in message footer

技術標籤:Failed方案git

  • 報錯
[email protected]:/home3/fangjian/LA.UM.9.12$ git push origin HEAD:refs/for/SRM900_custom
Counting objects: 29, done.
Delta compression using up to 64 threads.
Compressing objects: 100% (27/27), done.
Writing objects: 100% (29/29), 2.76 KiB | 0 bytes/s, done.
Total 29 (delta 19), reused 0 (
delta 0) remote: Resolving deltas: 100% (19/19) remote: Counting objects: 880380, done remote: Processing changes: refs: 1, done remote: ERROR: commit 29189f3: 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 [email protected]: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://[email protected]:29418/LA.UM.9.12 ! [remote rejected] HEAD -> refs/for/SRM900_custom (commit 29189f3: missing Change-Id in
message footer) error: failed to push some refs to 'ssh://[email protected]:29418/LA.UM.9.12'

按照提示操作仍報錯

gitdir=$(git rev-parse --git-dir); scp -p -P 29418 [email protected]:hooks/commit-msg ${gitdir}/hooks/
git commit --amend --no-edit
git push origin HEAD:refs/for/SRM900_custom
  • 解決
git stash && git pull --rebase && git stash pop
git push origin HEAD:refs/for/SRM900_custom