whatisgithub

What is hub?

pwaller/hub — explained in plain English

Analysis updated 2026-07-18 · repo last pushed 2015-09-27

GoAudience · developerComplexity · 2/5DormantSetup · easy

In one sentence

A command-line wrapper around Git that adds GitHub shortcuts, like forking, opening pull requests, and browsing repos, without leaving the terminal.

Mindmap

mindmap
  root((hub))
    Inputs
      Git commands
      GitHub shorthand
      OAuth token
    Outputs
      Expanded git commands
      Forked repos
      Pull requests
    Use Cases
      Clone repos by shorthand
      Open pull requests from terminal
      Fork repos via CLI
    Tech Stack
      Go
      Git
      GitHub API

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Clone a repo with a short GitHub username/repo shorthand instead of typing the full URL.

USE CASE 2

Fork a repository directly from the terminal with git fork.

USE CASE 3

Open a pull request without leaving the command line using git pull-request.

USE CASE 4

Check out someone else's pull request as a local branch to review or test it.

What is it built with?

GoGitGitHub API

How does it compare?

pwaller/hub42wim/fabio42wim/go-xmpp
LanguageGoGoGo
Last pushed2015-09-272018-02-042020-01-24
MaintenanceDormantDormantDormant
Setup difficultyeasymoderatemoderate
Complexity2/53/53/5
Audiencedeveloperops devopsdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires authenticating with GitHub via an OAuth token on first use.

License is not stated in the available content.

So what is it?

Hub is a command-line wrapper around Git that adds shortcuts and GitHub integration to make working with repositories faster and less repetitive. Instead of typing out full GitHub URLs or remembering complex Git commands, you can use shorter, smarter versions that hub expands automatically. For example, typing git clone schacon/ticgit instantly becomes the full clone command pointing to that user's repository on GitHub. The tool works by intercepting your Git commands and enhancing them with GitHub awareness. When you type a GitHub shorthand like a username or repo name, hub converts it into the proper Git command with the full URL. It also adds entirely new commands that don't exist in regular Git, like git fork to fork a repository directly from the command line, git pull-request to open a pull request without leaving your terminal, and git browse to open the repository page in your browser. Some commands are especially clever: git cherry-pick can take a GitHub pull request URL and automatically fetch and apply that code, or git checkout can check out a pull request as a local branch. Hub is useful for anyone working with GitHub repositories regularly, developers, teams, and open-source contributors who want a faster workflow. Instead of juggling multiple Git remotes, copy-pasting URLs, or switching to a web browser to create a fork or pull request, you stay in the terminal and let hub handle the repetitive parts. The tool is transparent too: all normal Git commands still work exactly as before, so there's no learning curve for existing Git users. Setup is straightforward. Hub is typically aliased as git itself, so you don't need to remember a new command name, you just type git as usual and get extra powers. It handles authentication with GitHub through OAuth tokens, and works with both regular GitHub and GitHub Enterprise if your organization uses that. The project is written in Go, so it's a single compiled binary with no dependencies beyond Git itself.

Copy-paste prompts

Prompt 1
Show me how to alias hub as git so all my normal git commands get GitHub superpowers.
Prompt 2
Walk me through using git pull-request to open a PR for my current branch without a browser.
Prompt 3
Explain how git cherry-pick works in hub when I paste a GitHub pull request URL.
Prompt 4
Help me set up hub with a GitHub Enterprise instance instead of github.com.
Prompt 5
Show me how git checkout can pull down someone else's pull request as a local branch using hub.

Frequently asked questions

What is hub?

A command-line wrapper around Git that adds GitHub shortcuts, like forking, opening pull requests, and browsing repos, without leaving the terminal.

What language is hub written in?

Mainly Go. The stack also includes Go, Git, GitHub API.

Is hub actively maintained?

Dormant — no commits in 2+ years (last push 2015-09-27).

What license does hub use?

License is not stated in the available content.

How hard is hub to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is hub for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.