Installing the hub CLI on Linux

Tom Houlé
Mar 28, 2017 · 1 min read

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:

  1. Download the latest release on the release page (“hub ${version} for Linux 64-bit”)
  2. Go to the directory where it was downloaded and decompress it: tar xzf [name of the file]
  3. Enter the decompressed directory with the same name as the archive you downloaded (with cd)
  4. Run the install script inside this directory: sudo ./install
  5. 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.

Hi there, we’re store2be, a Berlin based startup that builds a SaaS enabled marketplace for short term retails space. If you like what we are posting you might wanna check out the store2be tech page or follow our Medium channel.

store2be-tech

Every now and then we post some things about tech at store2be. https://tech.store2be.com

Tom Houlé

Written by

Web developer at store2be. Functional programming, TDD, Rust, and k8s make me happy.

store2be-tech

Every now and then we post some things about tech at store2be. https://tech.store2be.com

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade