Instructions on how to install the GitHub's command-line tool hub
.
macOS Command Line Tools need to be installed on your local computer.
To install the Command Line Tools run the following command:
xcode-select --install
hub
can be obtained here. Copy the
link for the version that you want to install from there.
Get the hub
archive and extract it with the following command:
curl -fsSL --retry 3 --insecure "https://github.com/github/hub/releases/download/v2.14.2/hub-darwin-amd64-2.14.2.tgz" | sudo tar xz --no-same-owner --strip-components=2 -C /usr/local/bin/ hub-darwin-amd64-*/bin
Run the following command on a terminal window:
hub --version