Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git request-pull: how to create a (github) pull request on the command line?

Tags:

I've cloned a project, and pushed a branch with just a renamed readme file to README. I am trying to create a pull-request on the command line, just to try PR from here instead of a website.

$ git request-pull origin/master origin readme:readme The following changes since commit 51320a3a42f82ba83cd7919d24ac4aa5c4c99ac6:    first commit message  are available in the git repository at:    [email protected]:example/com:example.git readme  for you to fetch changes up to 891c05c5236341bcbe33ceddc415ae921ee42e44:    second commit message  ---------------------------------------------------------------- Simone Gentili (1):       Fix   readme.md => README.md | 0  1 file changed, 0 insertions(+), 0 deletions(-)  rename readme.md => README.md (100%) 

github shows no pull request and I don't see errors.

  • is possibile to create a pull request directly from bash?
  • is PR correct and can I view pull request list?
like image 618
sensorario Avatar asked Jan 22 '16 11:01

sensorario


People also ask

Can you Create pull request from command line?

Create Pull Request From the Command Line in Git Pull request is supported by Git, enabling us to request a pull from one working area to another through various repositories or branches. The command checks the changes and commits we will do in the feature branch.

How do I pull pull request from GitHub?

Under your repository name, click Pull requests. In the list of pull requests, click the pull request you'd like to modify. To choose where you'd like to open the pull request, select the Open with drop-down and click one of the tabs.


1 Answers

Even though they are called exactly the same thing, a GitHub pull request and a 'git request-pull' are completely different.

The git request-pull is for generating a summary of pending changes to be sent to a mailing list. It has no integration by default with GitHub.

The GitHub Pull Requests is a fully featured function of GitHub only. It allows for merging and integration of code from a different branch/fork. You can resolve merge conflicts, do code reviews, or add additional comments to a GitHub pull request.

Unfortunately the git command is named similarly to GitHub functionality which makes it sound like they should be doing the same thing.

like image 188
William Ross Avatar answered Oct 08 '22 05:10

William Ross