您的位置:首页 > 编程语言

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

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

这是第一段提示:

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

remote:   gitdir=$(git rev-parse --git-dir); scp -p -P 29418 macy7@10.100.216.41
:hooks/commit-msg ${gitdir}/hooks/

让你执行两个命令:

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

直接在git里输入回车

第二个是: scp -p -P 29418 macy7@10.100.216.41:hooks/commit-msg ${gitdir}/hooks/

也是直接在git里输入回车

然后还有个提示信息:

remote: And then amend the commit:

remote:   git commit --amend

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

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

然后 就搞定了 这是一种自动插入change - Id的方法
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  git
相关文章推荐