Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 738 Bytes

use_hub.md

File metadata and controls

41 lines (29 loc) · 738 Bytes

Use hub

hub is a replacement for git, well it is actually just a command line wrapper, which makes your work with GitHub easier.

hub can be safely aliased as git, so you can type $ git in the shell and have it expanded with hub features.

Prior to aliasing:

$ hub --version
git version 2.25.0
hub version 2.14.1
$ git --version
git version 2.25.0

Aliasing:

$ alias git="hub"
$ alias | grep hub
alias git='hub'

After aliasing:

$ hub --version
git version 2.25.0
hub version 2.14.1

The alias should be put in your .bash_profile or equivalent.

References