til

Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as an open source contributor and product manager

View project on GitHub

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