您的位置:首页 > 其它

git 报错:ERROR: missing Change-Id in commit message footer

2016-06-07 14:47 330 查看
koson@koson-Liao:~/work/SourceFile/iwds_kernel/slpt$ git push origin
Counting objects: 108, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (15/15), done.
Writing objects: 100% (15/15), 2.62 KiB | 0 bytes/s, done.
Total 15 (delta 12), reused 0 (delta 0)
remote: Resolving deltas: 100% (12/12)
remote: Processing changes: refs: 1, done
remote: ERROR: missing Change-Id in commit message footer
remote: Suggestion for commit message:
remote: slpt: add the JDI panel
remote:
remote: Change-Id: If81938d417c4ddfdb0781d4576badf5f2f9bcd8b
remote:
remote: Hint: To automatically insert Change-Id, install the hook:
remote:   gitdir=$(git rev-parse --git-dir); scp -p -P 29418 kesen.liao@gerrit.ingenic.com:hooks/commit-msg ${gitdir}/hooks/
remote:
remote:
To ssh://kesen.liao@194.169.1.26:29418/sw1/slpt
! [remote rejected] HEAD -> refs/for/refs/heads/master (missing Change-Id in commit message footer)
error: failed to push some refs to 'ssh://kesen.liao@194.169.1.26:29418/sw1/slpt'

解决办法:

1.按照提示生成.git/hooks/目录下的commit-msg文件,然后重新git commit --amed。

2.如果生成不成功,就去别的.git/hooks/目录下拷贝一个。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: