如何使用 git 签署补丁

发布于 2024-09-27 02:55:29 字数 363 浏览 6 评论 0原文

我正在开发一个项目,有些人会向我发送 git 补丁,我必须验证这些补丁并签署提交。

我们正在使用创建补丁

git format-patch master --stdout > file.patch

并且文件被邮寄给我们,然后我们必须验证补丁。为此,我们创建一个新分支,然后使用补丁应用到该分支

git apply file.patch

,然后验证提交的内容,如果正确,那么我们需要为补丁中的每个提交添加签名。

我见过 git -am 命令,我们可以在应用补丁时添加签核。

应用补丁后是否可以添加提交?

谢谢

I'm working on a project where some people will sent me git patches and I've to verify those patches and sign off the commits.

We are creating the patches using

git format-patch master --stdout > file.patch

And the file is mailed to us, then we've to verify the patch. For this we creates a new branch and then applies the patch to that using

git apply file.patch

Then verifies the contents of the commit, if it is correct then we need to add sign off to each commit from the patch.

I've seen the git -am command where we can add the signoff at the time of applying the patch.

Is it possible to add a commit after applying a patch?

Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

段念尘 2024-10-04 02:55:29

应用补丁后是否可以添加提交?

嗯,是的,您只需进行一些更改并创建一个新的提交即可。

Is it possible to add a commit after applying a patch?

Well, yes, you just make some changes and create a new commit.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文