0

In order to simulate how fork works, I registered two GitHub accounts(Let's say they are G1 and G2), I setup a remote repository in G1. Then I cloned it on my local computer as:

$ git clone <url>

and forked that repository in G2, and added the forked repository as:

$ git remote add myfork <url>

then I added a new feature, and pushed fixs on the forked repository as :

$ git push -u myfork featureA 

then I did:

$ git request-pull origin/master myfork

so I checked if I received a new pull request on my G1 account and there was none, and I didn't receive any notification email(linked to G1), so where did I go wrong?

amjad
  • 3,048
  • 1
  • 11
  • 42
  • 3
    Possible duplicate of [git request-pull: how to create a (github) pull request on the command line?](https://stackoverflow.com/questions/34945947/git-request-pull-how-to-create-a-github-pull-request-on-the-command-line) – ceejayoz Sep 28 '19 at 14:59
  • 3
    TL;DR of the above: `git request-pull` doesn't do what you think it does. – ceejayoz Sep 28 '19 at 14:59
  • @ceejayoz thanks for the clarification. So `git request-pull` only generates summary output and I need to manually send those output to the maintainer? and the only way to generate a new pull request to maintainer is goto the forked repository and press the new pull request button on GitHub? – amjad Sep 28 '19 at 15:04
  • 2
    Correct. If you want to automate Github PRs, use Github's API or CLI. – ceejayoz Sep 28 '19 at 15:06

0 Answers0