macOS
brew install hublocal Homebrew formula metadata
sudo port install hubMacPorts ports tree · devel/hub/Portfile · source: api.github.com
brew
Add GitHub support to git on the command-line. Version 2.14.2 via Homebrew; verified from local package data.
install
brew install hublocal Homebrew formula metadata
sudo port install hubMacPorts ports tree · devel/hub/Portfile · source: api.github.com
sudo apk add hubAlpine Linux edge package indexes · hub · source: dl-cdn.alpinelinux.org
sudo apt install hubDebian stable package indexes · hub · source: deb.debian.org
nix profile install nixpkgs#hubnixpkgs package indexes · pkgs/by-name/hu/hub/package.nix · source: api.github.com
sudo pacman -S hubArch Linux sync databases · hub · source: geo.mirror.pkgbuild.com
sudo zypper install hubopenSUSE Tumbleweed package metadata · hub · source: download.opensuse.org
choco install hubChocolatey community package catalog · hub · source: community.chocolatey.org
scoop install main/hubScoop official bucket manifest trees · bucket/hub.json · source: api.github.com
winget install --id GitHub.hub -eWindows Package Manager source index · GitHub.hub · source: cdn.winget.microsoft.com
overview
Add GitHub support to git on the command-line
history
hub is a GitHub-oriented command-line companion for Git. Its central idea is deliberately conservative: keep normal Git behavior, then add shorthand and subcommands for common GitHub work such as cloning owner/repository names, opening project pages, creating repositories, managing issues, pull requests, releases, and making GitHub API calls from scripts.
The public GitHub repository was created in December 2009 under Mislav Marohnić's account, and the project later lived at the canonical github/hub repository while retaining the mislav/hub URL as an official repository redirect. The documentation describes hub as an extension to command-line Git, and its manual groups commands into Git commands that hub extends and GitHub-specific commands that hub adds.
hub occupied an important pre-gh niche: it made GitHub feel native inside a Git workflow before GitHub's separately branded gh CLI became the official general-purpose GitHub CLI. The hub README acknowledges gh as GitHub's more user-facing CLI while preserving hub's role as a lightweight Git wrapper and scripting tool.
hub spread through developer package managers because it matched an everyday GitHub workflow rather than a narrow build-time need. The Homebrew formula metadata for this batch lists packages across Homebrew, Debian, Ubuntu, Arch, Fedora, openSUSE, MacPorts, Nix, Scoop, Chocolatey, winget, and other ecosystems, while the project README documents similarly broad install paths.
Typical use is interactive and scriptable: users alias hub as git, clone repositories by GitHub shorthand, fork or create repositories, open pull requests, inspect issues, publish releases, or drop to `hub api` for raw GitHub REST or GraphQL calls. Configuration and OAuth credentials are stored under the XDG-style hub configuration path unless a token is supplied through the environment.
For package nerds, hub is a classic example of a small CLI that became distribution-worthy by wrapping an existing universal tool instead of replacing it. It also records a period in GitHub tooling history when third-party and community-maintained command-line clients filled gaps that later became first-party platform features.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
$XDG_CONFIG_HOME/hub~/.config/hubCredential-bearing paths to review before unattended agent runs.
$XDG_CONFIG_HOME/hub~/.config/hubexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
hub | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:hub |
|---|---|
| Version | 2.14.2 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/hub |
| Homepage | https://hub.github.com/ |
| Repository | https://github.com/mislav/hub |
| Upstream docs | https://hub.github.com/ |
| License | MIT |
| Source archive | https://github.com/mislav/hub/archive/refs/tags/v2.14.2.tar.gz |
| Build dependencies | go, groff |
| Bottle | available (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | hub |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
hub 2.14.2~ds1-1+b23
make git easier with GitHub
sudo apt install hubhub
nix profile install nixpkgs#hubhub 2.14.2~ds1-1ubuntu2
make git easier with GitHub
sudo apt install hubhub 2.14.2-r41
Extends git with extra features for GitHub
sudo apk add hubhub-bash-completion 2.14.2-r41
Bash completions for hub
sudo apk add hub-bash-completionhub-doc 2.14.2-r41
Extends git with extra features for GitHub (documentation)
sudo apk add hub-dochub-fish-completion 2.14.2-r41
Fish completions for hub
sudo apk add hub-fish-completionhub-zsh-completion 2.14.2-r41
Zsh completions for hub
sudo apk add hub-zsh-completionhub 2.14.2-4
cli interface for Github
sudo pacman -S hubhub 2.14.2-2.9
Command-line wrapper for git and GitHub
sudo zypper install hubhub
sudo port install hubhub
choco install hubmain/hub
scoop install main/hubGitHub.hub
winget install --id GitHub.hub -esource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.