News for hackers. Stuff that matters.
Re:Git undo: We can do better by sebmellen on Monday June 21, 2021 @11:46AM (#27580314)
For some reason people love to defend the obscure and strange and oftentimes objectively terrible Git CLI. I’ve found Mercurial much more straightforward for my (mundane and boring but prevalent) use cases, and I lament that it isn’t more widely used.
Re:Git undo: We can do better by zibzab on Monday June 21, 2021 @12:04PM (#27580486)
Every single time we are discussing git this comment shows up.

But why is one popular when the other one is so much better? I guess we will never know

Re:Git undo: We can do better by _ph_ on Monday June 21, 2021 @12:21PM (#27580693)
There are several reasons. In the beginning, hg was critisized to be slow as it was written completely in python. The effect of the Linux team going with Git instead created a lot of attention to git, probably also a lot in people who were faszinated by the capabilities of git and did not care much about user friendlyness. The biggest push for git undoubtedly came from github. That is now the premier platform for hosting software, especially open source software.
Re:Git undo: We can do better by disgruntledphd2 on Monday June 21, 2021 @12:08PM (#27580553)
GitHub is the reason. Turns out giving beer to developers globally is an effective way to get a technology adopted.
Re:Git undo: We can do better by zabzonk on Monday June 21, 2021 @12:11PM (#27580595)
Bitbucket used to provide free (and pretty good) Mercurial hosting.
Re:Git undo: We can do better by oblio on Monday June 21, 2021 @12:24PM (#27580729)
Bitbucket had a much crappier UI.
Re:Git undo: We can do better by zabzonk on Monday June 21, 2021 @12:28PM (#27580756)
Actually, one of the reasons I preferred hg to git is that Windows explorer GUI integration back then was far superior to gits, which was buggy as hell.
Re:Git undo: We can do better by ivanbakel on Monday June 21, 2021 @01:16PM (#27581249)
This doesn't seem relevant to the comment you're replying to. Bitbucket's web UI sucks, which is why it didn't have the effect on Mercurial that Github had on git.

Having used Bitbucket and GitHub, I think GH is much nicer - both in the sense of basic stuff like page loads being faster, and in terms of features. And since it's the main tool that everyone on the development team spends their time on for communication & collaboration, those things really matter.

Re:Git undo: We can do better by mixmastamyk on Monday June 21, 2021 @06:14PM (#27585228)
Also, remember to compare the sites ten years ago rather than today.
Re:Git undo: We can do better by marcosdumay on Monday June 21, 2021 @03:39PM (#27583348)
That is solely because of network effects. Anyone of them could be the popular one, as could any of the weirder ones like darcs, even it having technical flaws (mostly fixed by now).
Re:Git undo: We can do better by zabzonk on Monday June 21, 2021 @12:09PM (#27580573)
The Torvalds effect.
Re:Git undo: We can do better by zibzab on Monday June 21, 2021 @12:19PM (#27580673)
I know you imply, but this could also be interpreted as "battle proven" or how about "guaranteed to still work in 30 years"
Re:Git undo: We can do better by pjmlp on Tuesday June 22, 2021 @02:19AM (#27588588)
Git and Linux go hand-in-hand, so there is your killer use case right there.
Re:Git undo: We can do better by lanstin on Monday June 21, 2021 @02:18PM (#27582007)
This also shows that quality of the technology matters. Like the discussion on the business value of Amazon's "use APIs always," using git is using a superior source code technology, designed from the ground up for distributed development by a master of distributed development; good things are enabled automatically. Linus' naming and UX choices and inconsistencies aside, the tool is awesome. That's why it wins in distributed development environments - the bazaar not the cathedral and not the bespoke engineering team hidden away in the corporation.
Re:Git undo: We can do better by ryandrake on Monday June 21, 2021 @01:18PM (#27581268)
Although it sounds like a silly reason, compare the names themselves. I don’t even know how to pronounce “mercurial” without looking it up. The word doesn’t exactly roll off the tongue like git does. And then the command itself is “hg”. WTF is up with that? I mean, ha-ha we all get the joke, but was the program made for chemists? Unnecessarily clever. Don’t underestimate the extent to which a difficult/confusing name/brand can harm adoption.
Re:Git undo: We can do better by Al-Khwarizmi on Monday June 21, 2021 @07:43PM (#27586032)
For non-native speakers it's much more obvious how to pronounce mercurial than git. Mercurial can only be pronounced like mercury, I guess, is there any other sensible choice? But in git, it's not obvious if the g is pronounced as in get or as in gin until you look it up.
Re:Git undo: We can do better by zabzonk on Monday June 21, 2021 @02:13PM (#27581946)
> I don’t even know how to pronounce “mercurial”

But you do know how to pronounce "Unnecessarily"?

Re:Git undo: We can do better by j605 on Monday June 21, 2021 @03:07PM (#27582856)
I think for most people, they would encounter it in a science class early in life (at least for English speakers). And Hg is just the chemical symbol for mercury, https://pubchem.ncbi.nlm.nih.gov/element/Mercury#section=Ide...
Re:Git undo: We can do better by grogenaut on Monday June 21, 2021 @12:06PM (#27580520)
Personally I think it just needs a 3.0 where they completely rename all the commands so that they're really unified. I know there was pushback on this in the past
Re:Git undo: We can do better by seoaeu on Monday June 21, 2021 @01:26PM (#27581374)
The thing with command line interfaces is that since the same interface is used by humans and computer scripts, you essentially end up with an unversioned API that you can never make breaking changes to.
Re:Git undo: We can do better by symlinkk on Monday June 21, 2021 @05:20PM (#27584667)
It is versioned. There is git —-version. If your scripts break with the new version, don’t upgrade.
Re:Git undo: We can do better by seoaeu on Monday June 21, 2021 @10:08PM (#27587202)
With other sorts of APIs you are given the choice between say the v1 version or the v2 version, with both endpoints being available at the same time. However, when it comes to command line programs for all practical purposes you can only have a single version installed at a time. And it of course doesn't help that essentially none of the existing scripts even check the versions of the software they run.
Re:Git undo: We can do better by grogenaut on Tuesday June 22, 2021 @01:18PM (#27594380)
This is easily fixable with a new command or envvar.

This happens all the time

Re:Git undo: We can do better by matheusmoreira on Monday June 21, 2021 @01:27PM (#27581382)
That would be nice but will probably never happen due to backwards compatibility. Breaking changes in git would be even worse than the slow switch to Python 3.
Re:Git undo: We can do better by lanstin on Monday June 21, 2021 @02:19PM (#27582020)
Just call the consistent one "ggit" and the inconsistent one "git."
Re:Git undo: We can do better by cerved on Monday June 21, 2021 @02:24PM (#27582087)
The UX philosophy is radically different. One presupposes that you understand a lot more of the underlying system. The other tries to focus on what it is what you want to do, as opposed to how.

Mercurial is less intimidating if you don't know much about internals. But tbh, when I use Mercurial I still find myself searching which command to do things. As a frequent power user, I find the Git CLI to be more useable.