r/programming • • Jun 19 '14

Reinventing GIT interface

http://tonsky.me/blog/reinventing-git-interface/
221 Upvotes

325 comments sorted by

View all comments

44

u/[deleted] Jun 19 '14

I guess I'm alone in finding git not that hard to use. My only issue is git isn't pretty and to that end I have a few scripts to give me prettier logs (like most people have) and prettier branch summaries (my macro displays all branches, their latest commit id and dates).

Beyond that I manipulate my tree with straight up git commands.

Any halfway competent developer should be able to master git in a couple of weeks let alone be able to write their own version of git given a couple of full time weeks to work in.

57

u/slavik262 Jun 19 '14

Git's UI is terribly inconsistent and wonky. See git koans.

To summarize, if you don't have the five minutes to read something hilarious:

  • Git ignores attempts to alias core commands, but doesn't warn you that it is ignoring them.

  • git checkout does several completely unrelated things in different contexts.

  • Flags for various git commands are terribly inconsistent.

  • Git's man pages are terrible.

-17

u/[deleted] Jun 19 '14

Ya, and my socket set has imperial and metric. So what? You learn to use it just the same.

17

u/[deleted] Jun 19 '14

That's a terrible analogy. And even if it was a good analogy, "but X also sucks" is still a shit excuse.

-12

u/[deleted] Jun 19 '14

You're trying to suggest that Git is ineffective. I don't think that's the case. The millions of dollars of software I've shipped using it also don't think that's the case.

Git is not the most UI friendly tool but it's not hard to learn and use on a daily basis to work all stages of a product lifecycle.

11

u/slavik262 Jun 19 '14

You're trying to suggest that Git is ineffective.

No, we think it could be much easier to use than it is. There's essential complexity that comes from "We are solving a complex problem so we have a complex solution." Then there is accidental complexity, where things don't need to be this complicated.

Git has a lot of both.

-11

u/[deleted] Jun 19 '14

Again I disagree that it's complicated to use.

It's not obvious that you need to add -a to branch to see all branches [upstream] but that's not "hard" ... it's in the man page for git-branch ... etc. But that sort of inconsistency (while a flaw in the UI) hardly makes it complicated.

6

u/[deleted] Jun 19 '14

Again I disagree that it's complicated to use.

His point is that it could get easier without much effort.

-3

u/[deleted] Jun 19 '14

Send a pull request to the Git SCM team.

0

u/loup-vaillant Jun 21 '14

They have rejected much more innocuous improvement in the past. They will reject this one as well. From what I see,

  • they care very much about backward compatibility

  • they don't want any official GUI

  • they optimize for runtime speed more than the other aspects of user experience

  • they don't want to suggest any work-flow by default.

The only solution I see is write a sensible interface on top of Git, maybe even fork Git. Then hope for a GCC vs EGCS outcome.

5

u/[deleted] Jun 19 '14

You're trying to suggest that Git is ineffective

I'm not. I don't even know how you could misinterpret my comment to reach that conclusion.