Simplifying git workflows with hub

There is a fantastic application called ‘hub’ which can save a ton of time off of your git workflow.

https://github.com/github/hub

Normally to clone a git repo, you would enter the following

cd /tmp

git clone https://github.com/adaptivecomputing/torque.git -b 4.2-dev

With hub the same command could be executed with the following

cd /tmp

hub clone adaptivecomputing/torque -b 4.2-dev

Since most of the available options for hub match the commands for git, you could even create an alias from hub to replace git.

Just one tip to make your git workflow simpler

Advertisements

About spuder
spuder is a "super computer" support engineer by day, and tinkerer / hobbyist by night.

Leave a Reply

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

%d bloggers like this: