News for hackers. Stuff that matters.
Re:Shit – An implementation of Git using POSIX shell by na85 on Wednesday February 12, 2020 @12:14AM (#22306012)
I don't think it's asking to have one's hand held to complain about git's poor interface. There's no reason other than lazy design to have a tool where to show all remotes it's

$ git remote -v

But to show all branches it's

$ git branch -a

It's like it's been purposefully designed to be obtuse.

Re:Shit – An implementation of Git using POSIX shell by edflsafoiewq on Wednesday February 12, 2020 @01:22AM (#22306371)
It seems like you've made this example obtuse.

`git remote` and `git branch` list the remotes and branches respectively.

Adding -v makes both of these verbose. It will additionally show what each branch/remote is "pointing at".

Adding -a to `git branch` shows remote tracking branches in additional to local branches. This not normally interesting so the default is to list only local branches.

Re:Shit – An implementation of Git using POSIX shell by reagent_finder on Wednesday February 12, 2020 @02:15AM (#22306627)
...yes, remote tracking branches are interesting as well, I don't know a situation where they wouldn't be.

There's plenty of weirdness in Git, but honestly my main complaint is that the interface is awful and the documentation makes Dostoyevski look modern and sleek.

Re:Shit – An implementation of Git using POSIX shell by majewsky on Wednesday February 12, 2020 @07:16AM (#22308183)
You clearly have not ever worked on repos where nobody ever cleans up after themselves as far as feature branches go. I'm working with repos with remote branches numbering in the hundreds. `git branch -a` is pretty useless at this point unless paired with grep.
Re:Shit – An implementation of Git using POSIX shell by rovr138 on Wednesday February 12, 2020 @10:35AM (#22309618)
this is what I have my alias set to - `git branch -a --sort=-committerdate`
Re:Shit – An implementation of Git using POSIX shell by oblio on Wednesday February 12, 2020 @07:22AM (#22308213)
That's just by accident. There's plenty of obtuse git commands , strange command names, non-standardized parameters, etc.
Re:Shit – An implementation of Git using POSIX shell by aspaceman on Wednesday February 12, 2020 @12:27AM (#22306059)
We're all talking about learning the internals of git and how it works, not it's poorly formed command lines. Pointing out how shitty the interface can be doesn't mean you shouldn't learn how your tools work.
Re:Shit – An implementation of Git using POSIX shell by reagent_finder on Wednesday February 12, 2020 @02:16AM (#22306632)
You say potato, I say potato. If the interface is clunky, you will learn by heart some switches and pass them on as cargo cult.
Re:Shit – An implementation of Git using POSIX shell by na85 on Thursday February 13, 2020 @06:42AM (#22316947)
>We're all talking about learning the internals of git and how it works, not it's poorly formed command lines.

But the argument is being put forward that to understand the command lines you have to understand the internals.