解决git提交到gerrit ERROR: missing Change-Id in commit message footer 问题
2016-10-25 16:39
639 查看
解决git提交到gerrit ERROR: missing Change-Id in commit message footer 问题
出现该问题的原因是 执行 git commit 没有生成 Change-Id 或者是从本地分支合并过来的,但是 提交 gerrit必须要有 Change-Id ,否则会被拒绝.其实错误信息已经提示如何解决该问题:Resolving deltas: 100% (10/10) remote: Processing changes: refs: 1, done remote: ERROR: missing Change-Id in commit message footer remote: remote: Hint: To automatically insert Change-Id, install the hook: remote: gitdir=$(git rev-parse --git-dir); scp -p -P 29418 rgchen@10.0.0.234:hooks/commit-msg ${gitdir}/hooks/ remote: And then amend the commit: remote: git commit --amend remote:
解决办法:
install the hook 让每次提交自动插入 Change-Id 安装方法提示的有: gitdir=(gitrev−parse–git−dir);scp−p−P29418rgchen@10.0.0.234:hooks/commit−msg{gitdir}/hooks/
重新更新提交信息 git commit –amend “这里写更新注释”
然后重新 upload 或者 push
附上git merge 方式:
git merge branch_name fast-farward merge
git merge –no-ff branch_name 会执行正常合并
参考文章:
代码合并:Merge、Rebase的选择
git merge简介
相关文章推荐
- Git提交问题:remote: ERROR: missing Change-Id in commit message footer
- git 提交代码 ERROR: [eaabb6d] missing Change-Id in commit message footer
- 解决 ERROR: missing Change-Id in commit message footer 问题
- git push ERROR: missing Change-Id in commit message footer
- git 报错:ERROR: missing Change-Id in commit message footer
- git push ERROR: missing Change-Id in commit message footer
- git push ERROR: missing Change-Id in commit message footer
- ERROR: missing Change-Id in commit message footer
- remote: ERROR: missing Change-Id in commit message footer
- remote: ERROR: missing Change-Id in commit message footer
- ! [remote rejected] HEAD -> refs/for/ToonV3.0 (missing Change-Id in commit message footer)
- git push错误ERROR: missing Change-Id in commit message footer
- git学习--commit-msg缺失导致的missing Change-Id问题分析
- linux显示git commit id,同时解决insmod模块时版本不一致导致无法加载问题
- 修正 Vim(Mac) 有时无法正确提交 Git Commit Message 的问题
- Hint: A potential Change-Id was found, but it was not in the footer (last paragraph) of the commit message
- ERROR missing Change-Id in commit message footer
- git学习--commit-msg缺失导致的missing Change-Id问题分析
- XCode7中自带git出现身份不确认以及commit不能提交问题的解决办法
- git --commit-msg缺失导致的missing Change-Id问题