Hub is a command line tool to interact with the Github-specific features of a repository, one of them being pull requests. We use it extensively at store2be and it is the natural way to create PRs for us. It has a Homebrew package for OS X users, so it’s completely straightforward there, but it is not packaged even for the most popular Linux distributions.
Here’s how to install it on your distribution of choice:
- Download the latest release on the release page (“hub ${version} for Linux 64-bit”)
- Go to the directory where it was downloaded and decompress it:
tar xzf [name of the file]
- Enter the decompressed directory with the same name as the archive you downloaded (with
cd
) - Run the
install
script inside this directory:sudo ./install
- Voilà!
You can now create pull requests by working on your branch, pushing it and running hub pull-request
.
Tip: hub browse
is a convenient way to open a browser tab for the current repository on Github.