98 points · by loppers92 · 9y ago · 49 comments
It's often helpful to know what's actually happening... then add something like hub later as an optimization.
hub clone rtomayko/tilt
Am I missing something? hub pull-request
hub fork # adds remote automatically
hub create # create GH repo for this local repo
And ability to use GH paths anywhere git takes a URL - clone (as you mentioned), remote add, submodules, etc. [alias]
hub = !hubFor example, the "release" command (which is great for using from a Makefile to do an automated release) has lots of functionality on master, but the current release only supports making new releases.
I may fork hub tonight and let Travis build a newer version.
Linus, please make it happen :)
It's possible to use https://git-scm.com/docs/git-request-pull and an out of band communication tool (Email, Slack) to achieve the same basic functionality. Take a look at https://git-scm.com/book/en/v2/Distributed-Git-Contributing-... for more info about the baked-in review and contributing tools.
I agree it would require additions to git & some kinda of standard around it but it's telling that every major git system in use "solves" this problem.
We need a system to do this in a standardized that works across service providers. I don't want to create a dummy github account only to submit a PR.
Our companies fork of gitflow uses hub for example.
But definitely, my biggest use is for quickly creating new private repos in Github to save small experiments (doesn't require hub to be aliased to git):
new => !git init && git commit --allow-empty -m 'Initial commit (empty)' && hub create -p `basename $PWD`
For new projects (hope you can get the aliases): mkdir newproject && cd newproject
g new
# Do stuff, etc...
gcia -m "Add project start" && gpgpr <PR#>
You can also easily checkout a branch from another users fork.
https://github.com/github/hub/blob/master/commands/alias.go#...
Oh wait, thats right, cause guys who make operating systems dont make human software.
I keep arguing that the unix model of using the same api for human consumption as for scripting is broken. One needs to be concise and doesn't need to be backwards compatible (interactive use), the other needs to be descriptive and backwards compatible (sctipting use). Git wasn't designed in the 70's so could easily have avoided this.
Compared to what? It's leagues better than what it replaced (SVN & CVS) and it's pretty comparable to Hg tbh.
So what's your preference here?
Like it would make sense to me if everyone who used git also used VIM, but they dont. Its a testiment to the power of the flock, that a product which gets its core functionaly so wrong, be used by so many ppl.
as for the topic at hand, if my company had invested so heavily into such a product, i would be doing everything in power to make it work. let alone if my companies core business was all in on it like github, it would be a no brainer and i cant beelive its taken so long to get the top of the backlog. looking forward to the nxt installment of hub which introduces propriority commands and see if they get treated like MS does :)
If a problem in Git was causing a problem for GitHub I'm sure they'd work to fix it. Although I don't see any @github addresses in git's git.
But hey if you're a happy TFS customer then good for you...