326 points · by taylorbuley · 14y ago · 83 comments
It gives me hope for the future of git that unlike many projects, they are willing to make these kinds of breaking changes to improve usability.
But git is great on the usability front - if you have understood to responsibly wield its great power.
I'm certainly not an expert git user (I would describe myself as intermediate), but I think that not a small amount of the gotchas and pitfalls in git are either directly or indirectly caused by said great power. You can do a lot of very dumb things with git, but as Kernighan and Pike put it in The UNIX Programming Environment: "UNIX does not prevent users from doing stupid things, as that would also prevent them from doing clever things". The same goes for git.
Please don't misunderstand me, though. I'm all in for changes that improve usability, but only if these changes do not impact git's power in a negative way, or make it harder to draw on that power. Otherwise I will be fundamentally opposed to such changes. Dumbing things down for everyone to cater to a lower common denominator is one of the worst things you can do to software in general.
What that sentence actually means is that the usability sucks and that if you spend enough time reading man pages you might actually get the software to do what you wanted it to do. Which in short means the usability sucks, if you want to say the usability was sacrificed in order to provide great power then say so, UNIX being powerful does not improve it's usability.
Personally, I don't think either UNIX or GIT made the trade off between usability and power, usability was simply ignored.
"Dumbing things down for everyone to cater to a lower common denominator is one of the worst things you can do to software in general." Actually it's one of the best things to do in software, you'll want to look at companies like Apple, Google, Facebook, Microsoft who all dumb things down so that the average person can do things like 'find what they're looking for' with out having to understand the math behind PageRank. Imagine the UI for aircraft was so horrible that to get from NY to LA you needed an aerospace degree.
PS. Mac has all the power of UNIX but with out a retarded interface meaning no tradeoff was actually necessary.
I really wish the guis were better. They can look at number of collaborators, project size, merges, branches etc and behave appropriately eg noticing that tags aren't pushed. I did try a bunch (Linux desktop) and they are uniformly ugly and somewhat hostile. The least worst one I found was gitg.
My experience on other projects (using Hg) has been that perpetual intermediates that use command line tools only make the most DVCS mistakes while TortoiseHg resulted in the fewest mistakes. Git's command line definitely isn't aimed at perpetual intermediates hence the "usability" complaints.
This fork is a good one: http://gitx.laullon.com/
Upstream is a more sensible default and I agree with the change.
I do, however, support "getting the defaults right".
What a peculiar thing to be annoyed by. I take it you are pairing?
It's to be expected, people are threatened by anything different, no reason command line habits should be any different.
git config --global push.default upstream
See also http://stackoverflow.com/a/948397EDIT: actually, the proposed change is to "upstream" and not "current", edited the command to reflect this.
The proposal is to change the default to 'upstream'This proposed default change in git will make things much clearer, in my opinion and I hope they agree to making the change.
This is, by far, the biggest head scratcher of git. People can get incredibly caught up in the fact that this is the default behavior. +1
The 'Rejected' error message that shows up when you push from one branch and another branch hasn't been merged with the remote recently successfully confuses every single person I've ever introduced to git.
As noted elsewhere, it's good to see the folks at git are willing to make breaking changes for the greater good.
I know I've set my git push to current a couple of times but most of the time I just end up deleting the branch if something that wasn't intended for public consumption gets pushed up.
I really don't want to try to remember if I wanted to hold back some change every time I push something. Current branch looks like a much more reasonable default.
If the answer is no, that's that.
If the answer is yes, you can immediately follow up with something like "git rebase origin master". Or not. Separate decision.
So, git's push/pull metaphor never felt like a great fit to me, since it lacks this level of control.
git config push.default current
might be a little cleaner :)How difficult is that?
If you weren't looking for an answer, and were just asking a rhetorical question, you'll have to tell us which side you're arguing for. The ease with which you can avoid relying on the default argues not only for the proposed change being unnecessary, but also for the proposed change being harmless.