Live data from Hacker News

Git-repo – Manage Gitlab, GitHub and Bitbucket from the command line

i.got.nothing.to

11–20 of 70 posts

Re: Git-repo – Manage Gitlab, GitHub and Bitbucket from the command line

#11

I really enjoy how the author broke down both the problem and the solution, explaining why the existing solutions are inadequate. I often see articles about new products or new programming languages, and their features, but they often forget to mention what problem prompted the solution. Why was a new language invented to solve this problem? Why were the existing solutions limiting? Bravo to the author here for makin…

> I really enjoy how the author broke down both the problem and the solution, explaining why the existing solutions are inadequate.

A thousand times this, I always get frustrated that every single product, tool or service has to have a lot of marketing gibberish, catchy slogans, etc., but zero explanations of what problems do they attempt to solve, or what was the motivation to create them.

You usually are required to dig further in the documentation or look for an external reference to understand what's the real purpose behind a product, tool or service.

Re: Git-repo – Manage Gitlab, GitHub and Bitbucket from the command line

#13
post #9

then you watch the code, create a branch: git checkout -b `bugfix/nasty_one` Please remove backticks from the command. What if you called the branch `poweroff` instead and a naive reader copy/pasted the command into her terminal?

  poweroff: Need to be root

Re: Git-repo – Manage Gitlab, GitHub and Bitbucket from the command line

#14
post #4

I'm surprised Github et al. haven't tried to contribute some functionality for doing this to git. The thing described in the article is extremely common.

They have, sort of. https://hub.github.com

Do you use it?

Re: Git-repo – Manage Gitlab, GitHub and Bitbucket from the command line

#15
post #9

then you watch the code, create a branch: git checkout -b `bugfix/nasty_one` Please remove backticks from the command. What if you called the branch `poweroff` instead and a naive reader copy/pasted the command into her terminal?

poweroff: Need to be root

One might have sudo privileges configured via /etc/sudoers (It's the default on AWS EC2 instances!)

Re: Git-repo – Manage Gitlab, GitHub and Bitbucket from the command line

#16
I really like that this works for all services interchangeably. Yes, Github created Hub for this same problem, but I've used Bitbucket at some jobs and Gitlab personally for some projects. Having something uniform and service agnostic is great. It's clear the creator thought a lot about this design feature.

Re: Git-repo – Manage Gitlab, GitHub and Bitbucket from the command line

#18
post #15

Earlier quoted context omitted.

poweroff: Need to be root

One might have sudo privileges configured via /etc/sudoers (It's the default on AWS EC2 instances!)

Yes, but you still need to call "sudo poweroff", not just "poweroff".

Re: Git-repo – Manage Gitlab, GitHub and Bitbucket from the command line

#19
post #8

I use hub[0] to accomplish some of the same things. `hub fork` creates a fork and sets up a new remote. After pushing to my fork, `hub pull-request` creates a pull request. [0] https://github.com/github/hub

IMHO, hub works best if you alias git=hub in your shellrc.

I don't use hub much, but I prefer not to alias it even though that's what they recommend as well.

I think it's best to keep them separated so you know what stuff is coming from hub and what's in vanilla git instead. "git" is already synonymous enough with "GitHub" in many peoples' minds without including GitHub-specific functionality in your mental model of the command line client.

Re: Git-repo – Manage Gitlab, GitHub and Bitbucket from the command line

#20
post #9

then you watch the code, create a branch: git checkout -b `bugfix/nasty_one` Please remove backticks from the command. What if you called the branch `poweroff` instead and a naive reader copy/pasted the command into her terminal?

poweroff: Need to be root

Some recent distros will actually let you run that as yourself, without root, if you're physically present at the machine. It's convenient for personal machines.
Post reply on HN