macOS
brew install hublocal Homebrew formula metadata
安装
brew install hublocal Homebrew formula metadata
sudo apk add hubAlpine Linux edge package indexes · hub · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#hubnixpkgs package indexes · pkgs/by-name/hu/hub/package.nix · 来源: api.github.com
sudo pacman -S hubArch Linux sync databases · hub · 来源: geo.mirror.pkgbuild.com
sudo zypper install hubopenSUSE Tumbleweed package metadata · hub · 来源: download.opensuse.org
choco install hubChocolatey community package catalog · hub · 来源: community.chocolatey.org
scoop install main/hubScoop official bucket manifest trees · bucket/hub.json · 来源: api.github.com
winget install --id GitHub.hub -eWindows Package Manager source index · GitHub.hub · 来源: cdn.winget.microsoft.com
概览
Add GitHub support to git on the command-line
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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/hub可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
hub | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:hub |
|---|---|
| 版本 | 2.14.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/hub |
| 主页 | https://hub.github.com/ |
| 仓库 | https://github.com/mislav/hub |
| 上游文档 | https://hub.github.com/ |
| 许可证 | MIT |
| 源码归档 | https://github.com/mislav/hub/archive/refs/tags/v2.14.2.tar.gz |
| 构建依赖 | go, groff |
| Bottle | 可用 (于 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 | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.