git request-pull from local branch to remote master

Guillaume Vincent picture Guillaume Vincent · Oct 28, 2014 · Viewed 33.9k times · Source

I really love the github pull-request method for collaboration on distributed software development. It allows discussion and code review.

My goal is to use the same flow but inside our repository without github. I don't want to fork the project.

Lets imagine, I develop an awesome feature locally. And I want to make a pull request on my master branch to force code review.

  A---B---C feature/awesomeFeature
 /
D---E---F---G origin/master
              master

is it possible to make a pull request on origin/master ?

I tried git request-pull feature/awesomeFeature origin without any success

Answer

ArnaudR picture ArnaudR · Aug 12, 2015

If you developed your feature branch locally, you just have to use:

git request-pull origin/master feature/awesomeFeature

This will only give you a summary of the changes. If you want every detail, remember to add -p (for patch) to your command line.