News for hackers. Stuff that matters.
Re:Things I hate about Git (2012) by ubernostrum on Monday December 26, 2016 @09:12PM (#13260858)
However, he and many git users enamored of his style are perfectly willing to be condescending to anyone who points out the problems. Which itself is a problem.
Re:Things I hate about Git (2012) by wqweto on Monday December 26, 2016 @09:14PM (#13260869)
Is hg easier to use? Or any other DVCS not created by such a bad UX practitioner?
Re:Things I hate about Git (2012) by jbronn on Monday December 26, 2016 @09:18PM (#13260875)
I was a major user of hg from 2007-2012, before I succumbed to network effects. The UX of hg was more intuitive for users coming from SVN and CVS.
Re:Things I hate about Git (2012) by bblough on Tuesday December 27, 2016 @01:42AM (#13261662)
> The UX of hg was more intuitive for users coming from SVN and CVS

I second this. Trying to go from SVN to git left me confused and frustrated, while I found it much easier to switch to hg. Once I had been using hg for a while, I found that I had absorbed enough of the difficult/confusing stuff that switching to git was relatively painless.

Re:Things I hate about Git (2012) by isaac_is_goat on Monday December 26, 2016 @10:13PM (#13261052)
Hg is easier to use for mainly 2 reasons:

1. The UI is more consistent ie. the "update" command only does 1 thing updates your working directory to a specified state.

2. It doesn't have a pre-commit staging "index" like Git (or it at least doesn't expose it to the user. So workflow is a bit for straightforward ie. you don't need to constantly "add" files before you commit, it automatically does it for you.

Re:Things I hate about Git (2012) by lpr22 on Tuesday December 27, 2016 @02:30AM (#13261796)
I personally love the staging component of git and would be lost without it. I often write a bunch of code working through a problem, because I think best that way, but it makes for a maintenance chore and a poor commit history, so I stage it into multiple commits when I'm done. This is absolutely trivial in git compared with other programs.

Plus, while the UX of git is not intuitive, especially from SVN, if you want to bypass staging and just use it like SVN, you can "git commit -a". Like svn, if you have new, untracked files, you can "git add -A; git commit". This is also trivial to alias.

Re:Things I hate about Git (2012) by ivan_ah on Monday December 26, 2016 @09:44PM (#13260949)
I've used both extensively and I think they're virtually identical. Mercurial is a bit nicer because it's written in Python, but git has github going for it.

In my experience, once you get into more complicated commands like rebase, I had to read a lot of docs to get things to work in both systems, so I'd say hg is easier to get started with but they're on par overall in terms of complexity.

As a sidenote, I think the ability to `rebase -i` work branches and squash, edit, and drop changesets is a very useful feature, and it's made very easy in git. Mercurial can rebase branches, but it really doesn't like it...

Re:Things I hate about Git (2012) by marcinkuzminski on Tuesday December 27, 2016 @05:19AM (#13262342)
As for Mercurial, I'd this RhodeCode is the company going for it, since we heavily invest in supporting Mercurial in our product.
Re:Things I hate about Git (2012) by ubernostrum on Monday December 26, 2016 @09:26PM (#13260892)
hg's command-line interface is far better organized, yes, at least in the sense that it appears to have been organized rather than organically slapped together and papered over with "well it'd make sense if only you understood more about it".

Blaming users for not understanding a bad interface is one of the classic mistakes.

Re:Things I hate about Git (2012) by greggman on Monday December 26, 2016 @09:51PM (#13260979)
hg's original workflow didn't encourage git style branches at all nor did it have any kind of stage IIRC. They've since been optionally added. Is that workflow in hg more intuitive or is only its far less powerful original workflow more intuitive?

It took me a while make the mental jump from svn style branches to git style and from no stage to having a stage but I'd never want to go back now that I understand them.

Re:Things I hate about Git (2012) by ubernostrum on Wednesday December 28, 2016 @02:03AM (#13268936)
This is not about workflow (though I do prefer hg's model of multiple types of branch-like constructs). This is about the command-line interface used to interact with it. Where git overloads commands (the same command can do vastly different things depending on options or context), or cannot make up its mind whether to implement functionality through top-level commands or flags to existing commands, hg is much more consistent in having a set of commands whose names match the operations they perform and are not overloaded with multiple contextual meanings.
Re:Things I hate about Git (2012) by daigoba66 on Monday December 26, 2016 @09:52PM (#13260981)
For simple workflows (and certainly for beginners), hg is far easier to use than git. However when it comes to advanced usage, I personally find git more intuitive and frankly more powerful.

Granted, I learned git first and had been using it for 6 years before using hg.

Re:Things I hate about Git (2012) by prodigal_erik on Monday December 26, 2016 @10:22PM (#13261086)
Search results for "how do I branch in Mercurial" always seem to lead to elaborate tutorials that suggest repo clones or bookmarks or numbered anonymous heads or smuggling diffs outside the commit graph using an extension. If the simple use cases don't include branching, that seems like a big problem for a DVCS.