Github Hub CLI pull-request to organisation from fork

January 29, 2018

If you wish to open a Pull Request from the current branch you are working on it’s simply.

hub pull-request -b organisation/repo:master --message="Test PR message"

If you wish to open a Pull Request from the another branch (in your fork perhaps)

hub pull-request -b organisation/repo:master -h github_username:branch-name --message="Test PR message"
About me

Hello! I'm David Heward, how are you going? I'm a Senior Devops/Build Engineer, specialising in AWS & Cloud Automation. Based in London. Strong 10+ year background in Software development. Have a read of my blog. Have a look at some of my working projects. Contact me at @davehewy or on Linkedin.