繁体   English   中英

github: 提交错误地被注销

[英]github: commits incorrectly signed off

每当我在 github 上打开 PR 时,我都必须解决这个失败的检查:

 "commits incorrectly signed off"

我不明白为什么。 在打开 PR 之前是否有验证签收的命令?

查看 github output:

Commit sha: 5daed5f, Author: gianpaolo, Committer: gianpaolo; The sign-off is missing.
Commit sha: c76c1a1, Author: gianpaolof, Committer: gianpaolof; The sign-off is missing.
Commit sha: 5e7b46f, Author: gianpaolo, Committer: GitHub; The sign-off is missing.

看起来有 3 个不同的提交者? 谢谢

由于我的提交历史很短并且我没有共享工作,这就是我所做的:

1)删除所有已注销

    git filter-branch --msg-filter "sed /^Signed-off-by:/d"

2) git 推-f

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM