eclipse上用git插件提交代码报错

eclipse上用git插件提交代码报错

问题描述:

missing Change-Id in commit message footer
Processing changes: refs: 1
Processing changes: refs: 1, done

ERROR: missing Change-Id in commit message footer
Suggestion for commit message:
Merge branch 'master' of http://gerrit.github.com/ITAPYS_TOS/OA_store
Change-Id: A8efwe3r23r23dfferwjt565tjhdgsrwtt78jtjytfwe33

Hint: To automatically insert Change-Id, install the hook:
gitdir=$(git rev-parse --git-dir); scp -p -P 29418 wasion@gerrit.github.com:hooks/commit-msg ${gitdir}/hooks/

参考这个:http://blog.sina.com.cn/s/blog_4b5039210102e5o5.html
英文好就参考官方的:https://git.eclipse.org/r/Documentation/error-missing-changeid.html
你的问题在没有权限改变代码后直接提交到远程的仓库里,因为没有被审核。

上网查了一下,有类似问题,但都是命令行操作的,相应的在eclipse的git插件上怎么操作呢?新手求大神指教!下面附上查到的命令行操作办法:

1、按照Hint提示,执行命令:
[java] view plain copy 在CODE上查看代码片派生到我的代码片
gitdir=$(git rev-parse --git-dir); scp -p -P 29418 harryhe@10.10.96.212:hooks/commit-msg ${gitdir}/hooks/

2、然后重新添加commit,执行命令:
[java] view plain copy 在CODE上查看代码片派生到我的代码片
git commit --amend

3、最后重新push,解决问题

下载个图像界面,直接从本地仓库里面敲命令吧