Skip to content
Go back

git + hub = github

Published:  at  02:33 PM
1 min read

Opening a new pull request from GitHub’s UI? Copy-pasting the SSH/HTTPS url for cloning a repo?

Ain’t nobody got time for that!

hub is a command-line wrapper for git that makes you better at GitHub.

Usage

I’ve been using it for a while now and this is the gist:

hub pull-request -o

Will open your default editor to insert the header and description, then launch a new browser tab to view it. You can even add reviewers [-r <REVIEWERS>]

hub clone github/hub

Expands to [email protected]:github/hub.git
Just replace ‘github’ with the repo’s organization or user and ‘hub’ with its name.

Protip

As the docs suggest, hub is best aliased as git. So feel free to add it to your .bashrc/.zshrc: alias git=hub

Installation

Follow the instruction and other examples here

The manual can be found here

GitHub logo



Previous Post
Spell Checking in Vim
Next Post
Markdown All The Things