Skip to content

Instantly share code, notes, and snippets.

@JorgenEvens
Last active November 20, 2015 10:13
Show Gist options
  • Save JorgenEvens/fecb03320a54ed74e58c to your computer and use it in GitHub Desktop.
Save JorgenEvens/fecb03320a54ed74e58c to your computer and use it in GitHub Desktop.
How to use `hub pull-request` at bubobox

Use hub to create pull requests

Configure your git

This will make hub use the upstream remote as the base for pull requests

git config --global push.default=upstream

More at https://github.com/github/hub/commit/06999d907e3e606b8bfdbf3037e9bb8b3e2a1ea8

Configure your local repository

Add the upstream remote so hub can detect the remote repository.

git remote add upstream bubobox/<repo>

Configure the upstream of your branch

When you push your branch the first time use -u such that git saves the remote for this branch.

git push -u origin feature/<my-awesome-feature>

Create a pull request of your branch

-o will open the pull-request on GitHub.

git pull-request -o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment