如何从分叉回购更新拉取请求? [英] How to update a pull request from forked repo?

查看:32
本文介绍了如何从分叉回购更新拉取请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我首先对一个 repo 进行了分叉,然后对那个分叉的 repo 进行了提交.然后我打开了一个拉取请求.拉取请求列出了我想要的所有更改.

So I first forked a repo and then made a commit to that forked repo. I then opened a pull request. The pull request listed all the changes I wanted.

在审查了我的拉取请求后,回购所有者希望我在他接受之前进行一些更改.我已经在 fork 中进行了这些更改,现在如何使用这些更改更新拉取请求(或者这不是我应该处理的方式)?

After reviewing my pull request, there were a number of changes that the repo owner wanted me to make before he accepted it. I have made those changes in my fork, now how do I update the pull request with those changes (or is this not how I should handle it)?

推荐答案

你做对了.拉取请求将自动更新.过程是:

You have done it correctly. The pull request will automatically update. The process is:

  1. 打开拉取请求
  2. 根据本地存储库中的反馈提交更改
  3. 推送到分叉的相关分支

拉取请求会自动将新提交添加到 PR 的 Commits 选项卡中.

The pull request will automatically add the new commits to the Commits tab of the PR.

这篇关于如何从分叉回购更新拉取请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆