News for hackers. Stuff that matters.
Re:Git In Two Minutes (updated after 8 years) by ArrayBoundCheck on Saturday August 06, 2022 @04:14PM (#32371200)
I wish they made a breaking change in the next version and make the CLI actually usable.

Before you downvote, ask yourself how do you list tags, branches and remote

Re:Git In Two Minutes (updated after 8 years) by CRConrad on Thursday August 11, 2022 @02:55AM (#32422377)
> I wish they made a breaking change in the next version and make the CLI actually usable.

As I understand it, they're attempting to make it "actually usable" by adding more consistent (and maybe even "intuitive") options to the syntax. In order to avoid a breaking change, though, they're also leaving the old confusing stuff in. Sure, it's regrettable that it's there in the first place, but understandable that they don't want to break people's scripts from, by now, decades back.

Sure, that makes it a little harder to learn, but it can be done, by just making a conscious decision to ignore those crufty old bits.

Re:Git In Two Minutes (updated after 8 years) by umanwizard on Saturday August 06, 2022 @04:27PM (#32371304)
They shouldn't break the existing `git` command as it is widely used in scripts. But there are projects that try to build better UIs on top of git; the most serious such attempt that I know of is magit.
Re:Git In Two Minutes (updated after 8 years) by mmcclimon on Saturday August 06, 2022 @04:54PM (#32371511)
While acknowledging that git's CLI is often unintuitive: `git tag` lists tags, `git branch` lists branches, and `git remote` lists remotes, so I don't think I understand this particular objection.
Re:Git In Two Minutes (updated after 8 years) by ArrayBoundCheck on Saturday August 06, 2022 @06:18PM (#32372089)
Compare it with `git branch -a` and `git remote -v`. That's my point. Not only are they all different flags but you'll get half the data you could be getting and not know why. It's impossible to google
Re:Git In Two Minutes (updated after 8 years) by ajross on Saturday August 06, 2022 @04:31PM (#32371344)
"git tag", "git branch -a", "git remote -v"

You point is what, that these are needlessly asymmetric? It's true. But they're in my head because I do them every day, and it's not like I'm suffering under the burden of remembering a handful of flags. That's a pretty far cry from "not actually usable", so maybe your hyperbole is a little misplaced?

Re:Git In Two Minutes (updated after 8 years) by ArrayBoundCheck on Saturday August 06, 2022 @04:59PM (#32371544)
Correct. That was a simple example that's easy to understand

Anyone with half a brain can understand that if they can't keep something as simple as printing a list consistent you better believe nothing else will be straightforward. Which is my point. NOTHING is straightforward and I haven't met a single person who likes the CLI if they do anything more complex than a commit, push and pull. I know people who still refuse to use rebase and don't understand bisect or blame. They use a GUI to restore files

Re:Git In Two Minutes (updated after 8 years) by PeterWhittaker on Saturday August 06, 2022 @04:38PM (#32371389)
Branches are easy, what with them being only labels:

> git branch --all

Tags are different, since they are actual objects in git, but using ls-remote isn’t tough, and one could create an alias.