简体   繁体   中英

Is it possible to accept pull request from a cloned/forked repo?

Is it possible to accept pull request from a cloned repo?

Example ( fork of repo ):

Pull Request Limbo:

  • Repo #1 has new pull request but does not accept/merge
  • Repo #2 wants the new pull request from Repo #1

Is there any way to accept the pull request from Repo #1 to Repo #2?

Does this make sense? Maybe a git upstream pull request?

The pull request applied to Repo #1 comes from a fork(another repository). If Repo #2 would like to apply the pull request, it's as simple as adding the fork as a remote and then fetch the changes directly from that fork.

See https://help.github.com/articles/fork-a-repo and https://help.github.com/articles/using-pull-requests , which actually explain this in much more detail.

Another approach would be to directly apply the patch by using git am . There is an example of git am in usage in the latter link.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM