Hub is a command line tool that wraps around the git command. It add’s some cool features that make working with git easier. The goal of this post is to show how easy it is to generate a pull request. But i’ll also quickly explain how to install hub itself.
With that in place we can setup hub
git version 1.9.1
hub version 2.2.0-rc1-13-g111100c
If you are used to the git command like me. It might be a good idea to setup a alias for hub
One other thing i had to do because we work with the Github Enterprise Edition. Is to whtelist our github host.
Creating a pull request with hub is as easy as using the Github web gui. We start of with creating a fork of an existing repository
This created the remote fork. And sets the correct remotes for the local repository
origin email@example.com:user/FOO.git (fetch)
origin firstname.lastname@example.org:user/FOO.git (push)
me email@example.com:me/FOO.git (fetch)
me firstname.lastname@example.org:me/FOO.git (push)
Before we can generate a pull request we ofcourse need some changes to push.
Total 0 (delta 0), reused 0 (delta 0)
* [new branch] bar -> bar
The only thing left to do is create the actual pull-request