re: How to write Bash one-liners for cloning and managing GitHub and GitLab repositories VIEW POST

FULL DISCUSSION
 

GitLab, unlike GitHub, lets us do this nifty thing where we don’t have to use the website to make a new repository first.

Wow, that really illuminates how Github forces us into suboptimal routines. Another example is updating a fork, that should really have been a single button click, not the local pull-push wrestlings.

 

Github has a utility called hub which provides the ability to create repos, fork them, create pull-requests, and few other things. It's meant to be a substituted for the git command since it implements all the git subcommands as well. github.com/github/hub

It's still not as cool as gitlab's "push-to-create"

 

I have been using hub but didn't know that was possible.
But I have now tried and failed to get it working:

hub create
Error creating repository: Unauthorized (HTTP 401)
Bad credentials

Don't know if that is my hub version 2.2.9, and I can't get their latest version work, probably due to my old OSX, even though none of the errors said that.

No comparison with Gitlab in both convenience and usability, where there is no need to download anything.

This is something I set up so long ago, I don't even remember what I did.

All props to Gitlab for making it painless

code of conduct - report abuse