Tag Archives: GitHub

Git + Hub = Github , Understand Github’s hub

hub is a command line tool that wraps git in order to extend it with extra features and commands that make working with GitHub easier. So in a way it will add some additional functionality to your existing git installation.

GitHub

Installation

We will cover OSX installation here. On OSX hub can be installed using Homebrew. Open the terminal and type following command.

$ brew install hub

You can check installation with following command.

$ hub version
git version 1.7.6
hub version 2.2.3

How to use it?

To clone any Github repository with hub you don’t have to specify the entire URL of repo. You can use shorthand notation like this.

git clone username/reporname

If it’s your own project, just specify the repo name.

git clone reporname

After pulling down a repo, you can make a quick fork of the project with:

git fork

and start working within your own personal project immediately. You can now make your changes and push to your personal repo with

git push username reporname

If you are already using git-cli to interact with GitHub and enjoy it, I recommend you install and try out hub.