前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >解决办法 not Signed-off-by author/committer/uploader in commit message footer

解决办法 not Signed-off-by author/committer/uploader in commit message footer

作者头像
叉叉敌
发布2019-09-18 11:41:15
1.8K0
发布2019-09-18 11:41:15
举报
文章被收录于专栏:ChasaysChasays

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

本文链接:https://blog.csdn.net/weixin_42514606/article/details/100698801

现象

一个 Gerrit 是从已经 merge 的仓库 回滚出来的一个,然后在上面修改,修改完了提交的时候发现一个错误

! [remote rejected] HEAD -> refs/drafts/stable/beryllium (not Signed-off-by author/committer/uploader in commit message footer)

对于gerrit 这个工具网上的解决方法是比较少的,看了官方有个解决方案。

https://gerrit-review.googlesource.com/Documentation/error-not-signed-off-by.html

大概说下, 就是这几个原因

missing Signed-off-by in the commit message footer Signed-off-by is contained in the commit message footer but it’s neither from the author, committer nor uploaderSigned-off-by from the author, committer or uploader is contained in the commit message but not in the footer (last paragraph)

解决办法

解决办法就是

To be able to push your commits you have to update the commit messages as explained here so that they contain a Signed-off-by from the author, committer or uploader in the last paragraph. However it is important that you only add a Signed-off-by if you understand the semantics of the Signed-off-by and the commit applies to the rules that are connected with this footer.

通俗的讲就是, 先 git commit --amend,然后把对应的用户信息加上去,格式如下 Signed-off-by: rikxiao <xxd0225@gmail.com>

最后再次push即可。

本文参与?腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2019年09月10日,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客?前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与?腾讯云自媒体同步曝光计划? ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 现象
  • 解决办法
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
http://www.vxiaotou.com