News for hackers. Stuff that matters.
Re:Some bad Git situations and how I got myself out of them by exDM69 on Friday September 09, 2016 @11:55AM (#12463363)
> The sad thing is mercurial has like 95% of git's power and is waaay easier to understand

Mercurial has a clean and simple UI, especially if you come from a SVN background.

But Git's internals are simpler and the concept is much easier to understand, especially if you start looking at a handful of the most popular Mercurial extensions, some of which will be "must have" sooner or later.

This is no excuse for an inconsistent UI in Git, but the damage is already done. There's no point in making major changes now (some renaming for consistency might be alright, though), it would be breaking existing workflows and scripts.

I find the best explanation of how Git works is... the first commit of Git[0] itself.

[0] https://github.com/git/git/commit/e83c5163316f89bfbde7d9ab23...

Re:Some bad Git situations and how I got myself out of them by BeetleB on Friday September 09, 2016 @01:20PM (#12464240)
>But Git's internals are simpler and the concept is much easier to understand,

I'm only an occasional Git user, but am a heavy Mercurial user.

I have never needed to understand Mercurial's internals.

Are you suggesting a Git user will eventually need to understand it? That's a strike against Git already.

From my observation over the years, people who use Git get "stuck" more often, because they are trying to leverage the extra power Git seems to provide. With Mercurial, you often can do similar powerful stuff, but they make sure you have to go through hoops to do it. As such, unsuspecting non-power users do not shoot themselves in the foot.

Re:Some bad Git situations and how I got myself out of them by ubernostrum on Friday September 09, 2016 @03:18PM (#12465280)
Are you suggesting a Git user will eventually need to understand it? That's a strike against Git already.

The typical advice -- which you'll see in this thread and elsewhere -- is that anyone who uses git should learn git's internals, and preferably up-front, since apparently that will magically cause git to make sense.

I'm a bit put off by the idea, myself.

Re:Some bad Git situations and how I got myself out of them by exDM69 on Friday September 09, 2016 @03:48PM (#12465512)
Exactly.

It's also worth looking at git internals because it's very elegant, clean and simple. In my opinion, one of the best designed software systems I've come across.

I encourage you to look at the README in the first git commit, it's very enlightening.

Re:Some bad Git situations and how I got myself out of them by whataretensors on Friday September 09, 2016 @09:19PM (#12467174)
>Are you suggesting a Git user will eventually need to understand it? That's a strike against Git already.

I think as engineers we should understand how our tools work.

Re:Some bad Git situations and how I got myself out of them by jogjayr on Friday September 09, 2016 @07:28PM (#12466766)
> Are you suggesting a Git user will eventually need to understand it? That's a strike against Git already.

I try to learn about git internals just for the pleasure of it.

Re:Some bad Git situations and how I got myself out of them by marcinkuzminski on Friday September 09, 2016 @12:32PM (#12463762)
I think Mercurial is also great, and we also can provide some feedback as the platform that supports Mercurial as Source Code Management (RhodeCode).

There are A LOT of mercurial users which are big companies, they just aren't so vocal on the internal like people using GIT. Mercurial has an established community, great plugability system, an awesome feature like phases.

We see more and more people adopting Mercurial together with our product.

I wish to see more advocates of Mercurial, it's a shame it doesn't get more public attention nowadays.