hub: GitHub the easy way

git_logo_compScared of git because of the options and switches you may need to remember? Try hub, developed primarily with GitHub users in mind. It simplifies the syntax of many common git commands and integrates well with GitHub repositories.

hub provides shortcuts for the following (at the time of writing):

  • git clone
  • git remote add
  • git fetch
  • git cherry-pick
  • git am, git apply
  • git fork
  • git pull-request
  • git checkout
  • git merge
  • git create
  • git init
  • git push
  • git browse
  • git compare
  • git submodule
  • git ci-status
  • git help

For example:

$ hub clone jarun/markit
//expands to
$ git clone git://github.com/jarun/markit.git
OR
$ hub remote add jarun
//expands to
$ git remote add jarun git://github.com/jarun/CURRENT_REPO.git

Refer the project page for details and examples on all the commands (link below).

Install

Download the latest pre-compiled binary for your architecture. hub works best when it is aliased as git.

Display instructions for the current shell:

$ hub alias
//-s outputs a script for eval
$ hub alias -s

Add the following to your .bash_profile:

eval "$(hub alias -s)"

hub provides shell tab completion scripts for bash and zsh shells.

Webpage: hub

Similar software

Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s