如何使用 git 签署补丁
我正在开发一个项目,有些人会向我发送 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,是的,您只需进行一些更改并创建一个新的提交即可。
Well, yes, you just make some changes and create a new commit.