如何更新分叉回购的请求? [英] How to update a pull request from forked repo?
问题描述
在回顾我的拉取请求之后,回购所有者希望我在接受之前进行了一些更改。我已经在我的fork中做了这些修改,现在我该如何更新这些更改的pull请求(或者这不是我应该如何处理它)? 解决方案
你已经做对了。拉取请求将自动更新。这个过程是:
$ b
- 打开拉取请求
- 根据您本地回购中的反馈提交更改
- 推送至您的分支的相关分支
该请求将自动添加新的提交在拉请求讨论的底部(即,已经存在,向下滚动!)
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.
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:
- Open pull request
- Commit changes based on feedback in your local repo
- Push to the relevant branch of your fork
The pull request will automatically add the new commits at the bottom of the pull request discussion (ie, it's already there, scroll down!)
这篇关于如何更新分叉回购的请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!