DEV Community

wolfiton
wolfiton

Posted on • Edited on

Hub the GitHub wrapper you never knew

Hi everyone,

Today I am writing about hub, the GitHub wrapper that can help you save time when you don't want to leave the console(terminal) and still want to add git as version control to your project.

I find it very useful when I want to create a new project on Github to just type in the root of my project:

hub init 
hub create

These commands, if you have GitHub set up right, will create your repo on Github and also push the project. So we can already start branching or tagging.

Also if you ever want to find out more about what hub can do. Just type hub in the terminal like this:

hub

This is just a fraction of what hub can do and I will also have to explore it more.

Hub installation and download instructions can be found here

https://hub.github.com/

I highly recommend you to try it, Dear Reader.

Will you take it for a test?

Credits:

https://hub.github.com/

Thank you, Andrew Clayton for spotting a typo in the opening paragraph regarding Github instead of git.

Thank you @rhymes

https://github.com/cli/cli

Top comments (10)

Collapse
 
rhymes profile image
rhymes

Hi @wolfiton ! Nice overview!

You might want to know that Github recently released an official (though in beta) CLI, to replace hub. It is written in Go.

GitHub logo cli / cli

The GitHub CLI

gh - The GitHub CLI tool

gh is GitHub on the command line, and it's now available in beta. It brings pull requests, issues, and other GitHub concepts to the terminal next to where you are already working with git and your code.

screenshot

Availability

While in beta, GitHub CLI is available for repos hosted on GitHub.com only. It does not currently support repositories hosted on GitHub Enterprise Server or other hosting providers.

We need your feedback

GitHub CLI is currently early in its development, and we're hoping to get feedback from people using it.

If you've installed and used gh, we'd love for you to take a short survey here (no more than five minutes): forms.gle/umxd3h31c7aMQFKG7

And if you spot bugs or have features that you'd really like to see in gh, please check out the contributing page

Usage

  • gh pr [status, list, view, checkout, create]
  • gh issue

For many years, hub was the unofficial GitHub CLI tool. gh is a new project for us to explore what an official GitHub CLI tool can look like with a fundamentally different design. While both tools bring GitHub to the terminal, hub behaves as a proxy to git and gh is a standalone tool.

Collapse
 
wolfiton profile image
wolfiton

The new article about gh is live here gh article.
Let me know if it is ok how I quoted you?

Also if you want to add something more?

Thanks again

Collapse
 
rhymes profile image
rhymes

Thanks! Super kind, there was no need to quote me though :D I'm not part of the gh team, I just use it.

Thanks again!

Thread Thread
 
wolfiton profile image
wolfiton • Edited

I know that you are not part of the Github Team, but you brought this info and I think it's only fair to mention that.

I added this for clarity like this:

Excerpt from the article regarding gh

Special Thanks to @rhymes for bringing this information in a comment on my previous article regarding hub and the GitHub Team who are building this new Github CLI Tool called gh.

I am glad that you liked the article.

Collapse
 
wolfiton profile image
wolfiton • Edited

Thank you for posting this update @rhymes , also I am very glad you enjoyed the article.

I will certainly look into this new tool GitHub released.

Collapse
 
wolfiton profile image
wolfiton

Would you allow me @rhymes to quote what you comment on here in the article as an update?

Also, add your name to the credits of the article as well?

Collapse
 
rhymes profile image
rhymes

Sure ☺️

Thread Thread
 
wolfiton profile image
wolfiton

Thanks, I will do it tomorrow.

Collapse
 
ac000 profile image
Andrew Clayton

A small nit to pick with the opening paragraph.

The way it reads it's basically saying that GitHub == Git.

(OK, that's probably not what you actually meant...)

GitHub is of course not a VCS, it provides hosting for a specific VCS, Git.

You can of course quite happily use Git and never touch GitHub...

Sorry, just a minor irritation (like when people conflate C & C++...)

Collapse
 
wolfiton profile image
wolfiton

Thank you for spotting that typo.