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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top