Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git syntax for pull request on the command line

I see documentation here: https://git-scm.com/docs/git-request-pull

But I'm not sure how to apply it to what I'm trying to to do. I pushed to branch called "fix/fixNumberHere" and I want to merge to a branch called "mergeBranch" using a pull request -- how to do I apply that to :

 git request-pull [-p] <start> <url> [<end>]
like image 854
Mike6679 Avatar asked Sep 29 '17 02:09

Mike6679


People also ask

What is the syntax of Git pull command?

Git Pull Origin Master We can pull the repository by using the git pull command. The syntax is given below: $ git pull <options><remote>/<branchname> $ git pull origin master.

Can you do pull request from command line?

Create Pull Request From the Command Line in GitPull 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 a Git pull request?

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

I think you would use this syntax:

git request-pull mergeBranch origin fix/fixNumberHere
                 ^^^ start   ^^ url    ^^^ end

I think more typically most Git users would create a pull request directly on the remote, e.g. if they were using something like GitHub or BitBucket.

like image 181
Tim Biegeleisen Avatar answered Oct 03 '22 01:10

Tim Biegeleisen