我喜欢这样一个事实,即 git 将允许您创建一个请求 pull 以发送到 kernel.org 或任何人来 pull 您的更改,但我的问题是您使用 git 什么命令来实际处理 pull 请求与“git am”的工作方式相同。
看起来你可以创建一个请求 pull 电子邮件,但没有办法实际应用它,我可以在任何在线 git 文档中找到它。是否需要单独的脚本来处理请求 pull 电子邮件中的内容,以实际将更改 pull 入您的本地存储库?
最佳答案
如“Distributed Git - Contributing to a Project”中所述:
The output can be sent to the maintainer – it tells them where the work was branched from, summarizes the commits, and tells where to pull this work from.
这意味着维护者可以添加一个远程引用,贡献 repo url,获取和 merge
git remote add contribution /url/contributing/repo
git fetch contribution
git merge contribution/abranch
(这里是一个 good request-pull , according to Linus Torvalds 的例子)
关于git 请求 pull : how do you apply a git request-pull email to your repo,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35398781/