Command-line tool
hub
brew/hub
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Add GitHub support to git on the command-line
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
winget install --id GitHub.hub -e scoop install hub
macOS
brew install hub
Linux
brew install hub
Clone a repository using its slug (owners can omit the username)
hub clone username/repo_name
Create a fork of the current repository (cloned from another user) under your GitHub profile
hub fork
Push the current local branch to GitHub and create a PR for it in the original repository
hub push remote_name && hub pull-request
Browse
Related command-line tools
- ghi
Work on GitHub issues on the command-line - dra
Command-line tool to download release assets from GitHub download 下载 github - thwack
Command line version of Go To File utility, similar to the one on GitHub - git-cal
GitHub-like contributions calendar but on the command-line - gh
GitHub command-line tool utility workflow tool cli git foss enterprise open-source terminal command-line github gh - git-xargs
CLI for making updates across multiple Github repositories with a single command - lezeh
Work specific productivity commands. See https://github.com/sendyhalim/lezeh for details. - gist
Command-line utility for uploading Gists
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents