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

错误提示

ERROR: missing Change-Id in commit message footer
remote: Hint: To automatically insert Change-Id, install the hook:

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

remote: And then amend the commit:

remote: git commit --amend

error: 无法推送一些引用到 'ssh://xxx@000.00.0.000:29418/example/app'

其实它有提示,如果没有,当遇到这个错误时

输入gitdir=$(git rev-parse --git-dir); scp -p -P 29418 xxx@000.00.0.000:hooks/commit-msg ${gitdir}/hooks/

此处的邮箱换成自己的git的那个,然后回车

输入 git commit --amend,回车,ok解决

再次push就可以啦

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容