Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you issue pull requests from the command line on GitHub?

It seems like you have to interact with github.com to initiate a pull request. Is this so?

like image 646
Andrew Johnson Avatar asked Oct 27 '10 21:10

Andrew Johnson


People also ask

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.

How increase PR with command line?

Go to the feature branch with git checkout -b [branch-name] . Then we can run git request-pull master ./ to run a comparison from the feature branch to the master. Notice that we state the master as the start and the local repository to compare so to get an accurate results, we need to be pulled from the latest master.

How do I Create a pull request in bitbucket from command line?

Before going any further, check and save your work on the local machine and update the branch. Then, open the Bitbucket website on your browser and navigate to the repository in question. Click on the menu button in the top-left, and select Pull Requests. Here, click on the Create pull request button.


2 Answers

UPDATE: The hub command is now an official github project and also supports creating pull requests

ORIGINAL:

Seems like a particularly useful thing to add to the hub command: http://github.com/defunkt/hub or the github gem: http://github.com/defunkt/github-gem

I suggest filing an issue with those projects asking for it. The github guys are pretty responsive.

like image 86
kanaka Avatar answered Sep 30 '22 21:09

kanaka


Git now ships with a subcommand 'git request-pull' [-p] <start> <url> [<end>]

You can see the docs here

You may find this useful but it is not exactly the same as GitHub's feature.

like image 28
Zensaburou Avatar answered Sep 30 '22 21:09

Zensaburou