TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Hub: Use GitHub from the Command Line

137 pointsby maxfan8almost 6 years ago

10 comments

inlineintalmost 6 years ago
While it is pretty cool, using such tool increases general lock-in to GitHub, in terms of both habits and potential use of it for automation of processes.<p>I wish there was an open standard for operations that hub allows to do and all major Git forges [1], including open source ones, such as Gogs&#x2F;Gitea and GitLab, supported it. In that case having a command-line tool that, like Git itself, is not tied to a particular vendor, but allows to do what hub does, could have been indispensable.<p>[1] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Forge_(software)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Forge_(software)</a>
评论 #20374241 未加载
评论 #20374487 未加载
评论 #20374302 未加载
评论 #20375030 未加载
fcarraldoalmost 6 years ago
Hub is essential for anyone who works with GitHub repositories, IMO.<p>It gives you, if nothing else, an important shortcut: `hub checkout github.com&#x2F;repo&#x2F;pulls&#x2F;1234` automatically adds a remote, fetches, and checks out the branch of a given pull request. Great for local testing&#x2F;validation, when needed.
评论 #20374136 未加载
评论 #20373867 未加载
评论 #20373738 未加载
评论 #20387877 未加载
lisnakealmost 6 years ago
Slightly tangential: I keep seeing Linuxbrew references on various tool installation instructions. Is Linuxbrew really gaining popularity? Why would you use it instead of your distro package management?
评论 #20375366 未加载
评论 #20374802 未加载
评论 #20374768 未加载
shocked-pikachualmost 6 years ago
I wrote something like this called git-admin[1] for remotely managing repositories and the like.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;ninetynine&#x2F;git-admin" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ninetynine&#x2F;git-admin</a>
foreigneralmost 6 years ago
I use Hub every day! The only command I use is &quot;hub pull-request&quot; though.
评论 #20374395 未加载
评论 #20375413 未加载
评论 #20374331 未加载
评论 #20399092 未加载
评论 #20375099 未加载
stockkidalmost 6 years ago
Hub is pretty cool. I&#x27;ve used it to automate the release process on github by writing a simple bash script.
asragabalmost 6 years ago
Does anyone know if it is possible, using hub, to sync a personal fork, with its upstream?
Topgamer7almost 6 years ago
I use hub, but almost exclusively to clone a repo, or more frequently, create a pull request (being able to specify a base branch to)
评论 #20374767 未加载
dijitalmost 6 years ago
Anything existing that does similar for gitlab?
评论 #20374305 未加载
fit2rulealmost 6 years ago
Awesome. I&#x27;ve needed something like this since the beginning of github.com itself. I can now, with glee and joy, chuck all the lame curl scripts I was using&#x2F;maintaining to try to perform the same function, and use something better.<p>The only thing is, I don&#x27;t like the name. The use of the term &#x27;hub&#x27; is a bit dangerous - I know other tools out there named such. For me, it&#x27;d have been better to have named it something more specific&#x2F;unique to the intended purpose, like &#x27;ghub&#x27; or even better, &#x27;github-client&#x27;, and then leave the alias-to-simpler-word up to the end user.
评论 #20375391 未加载