git 提交代码 ERROR: [eaabb6d] missing Change-Id in commit message footer

今天在提交代码的时候出现了一个问题,提示丢失 Change-Id , 然后我很慌,但是 有提示教你怎么做:


这是第一段提示:

remote: Hint: To automatically insert Change-Id, install the hook:

remote:   gitdir=$(git rev-parse --git-dir); scp -p -P 29418 [email protected]

:hooks/commit-msg ${gitdir}/hooks/

让你执行两个命令:

第一个是: gitdir=$(git rev-parse --git-dir) 

直接在git里输入回车


第二个是: scp -p -P 29418 [email protected]:hooks/commit-msg ${gitdir}/hooks/

也是直接在git里输入回车

然后还有个提示信息:

remote: And then amend the commit:
remote:   git commit --amend


那么我们执行第三条命令:


直接在git里输入 git commit --amend

然后 就搞定了 这是一种自动插入change - Id的方法


猜你喜欢

转载自blog.csdn.net/xielunyan666/article/details/78963097