git 请求 pull : how do you apply a git request-pull email to your repo

标签 git

我喜欢这样一个事实,即 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/

相关文章:

windows - 无法从 Windows 连接到我的 git 存储库到 linux

git - 如何从命令行提交 "message"和 "description"的更改?

带有 refspec 差异的 Git pull/fetch

Git 推送到私有(private)仓库

从远程仓库 pull 时,GitLab 镜像功能不起作用

git - 启动新的Docker容器时未显示Gerrit更改

git - 防止在 Git 中推送本地更改

Linux命令删除.git文件夹以外的所有文件?

ruby-on-rails - 在 Heroku 上为供应商库设置正确的路径

git - 使用 GitKraken 从 Git 缓存中删除目录/文件