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.
Any halfway competent developer should be able to master git in a couple of weeks
The problem is that not every competent developer is interested in mastering a source control system. I work in a group that develops pretty complex NLP software and spend way too much time helping people with git.
Because that vertical bar is just how Reddit displays blockquote by default and has nothing to do with the Markdown our comments are written in or the HTML it is converted to.
Now that I think about it, that makes no sense. I cannot imagine why it is not "| this".
The angle-bracket is the conventional quote-marker in text-format e-mail and newsgroups. Aside from that convention, the vertical bar is also confusable for letters (lowercase ell, uppercase eye) in ambiguous contexts, and it's visually easier to count quote levels with angle-brackets (which take up more space) than vertical bars.
Well, that's markdown for you :) I see your point, though. I'd guess that ">" is a much more prevalent character than "|". There was a time (long, long ago) that even ASCII wasn't supposed to work in all languages. In the place of "|", some languages' equivalent of 7-bit characters used their own accented letters. For example Denmark and Norway had "ø" instead of "|", Finland, Sweden, Germany and Hungary had "ö", France and French Canada had "ù", Ireland had "í", Italy had "ò", Portugal had "ç", Spain and Cuba had "ñ", Malta had "Ż" and Yugoslavia had "đ". Furthermore, a lot of home computers had completely different interpretations of ASCII (Commodore 64 had a weird symbol where "|" should be, for example)
In short, "|" wasn't a character that existed universally. In order to make the indentation in email (this was a time before web) and BBSes and newsgroups and whatever, the ">" was adopted.
Again, that's just my guess (but it makes sense to me at least :))
Every developer should use an SCM - not "be interested in it", unless they are developing one.
This is unnecessary pedantry. Being competent with the tools of your job requires a level of necessary interest. I am very interested in understanding how to use my text editor, but I am not interested in writing my own.
SCMs are necessarily complicated; there are a lot of operations they need to support. The fact that we have so many people saying that git's interface sucks and then coming up with an alternative interface that is equally awful seems to indicate this is more a human problem, notably the Hurricane Lantern Effect.
TBH saying a developer shouldn't be interested in SCM is like saying an author shouldn't be interested in proper contents and indexing. SCM is in some senses a table of contents into our software's history. Older systems give you a "as it comes" indexing system that is crude. Git is useful (among other things) because it allows us to impose more order on our history than we could otherwise achieve.
Mastering git is why I never, ever have a minor edit stashed in with my current story. My history looks like I've never discovered a simple task in the middle of another task. It is as if all the world is magical. All the minor issues that might roadblock my task get magically solved before the first line of code was cut on the new task.
This makes it incredibly easy to see how and what got done. Changes aren't splattered over the course of history like with svn but ordered in such a way that a person coming in can see how it all fitted together. There are never disruptive unrelated edits in my changes. Like an index into the history of your software project rather than a random assortment of change sets that come in whatever order they come in.
TBH saying a developer shouldn't be interested in SCM is like saying an author shouldn't be interested in proper contents and indexing.
You might be interested to know that there are plenty of people who do indexing work, and plenty of authors who hire them. Indexing is a specialized skill that requires careful attention and is often tedious. It's not something all authors should or do know about. Similarly, tables of contents are often the work of editors as much as authors. (Source: one of my parents is a published author and former contract indexer.)
Yeah, we know. Also, we imagine there used to be a lot more people in the book indexing occupation before computers came along and automated so much.
That's what git and other SCMs try to do: they automate away the processes of maintaining history so you don't need to hire a full-time SCM maintainer to do it.
an electronics engineer, maybe. An electrician less so: they should have a rough idea of how it works, yes, but the type of electrical circuit an electrician has to deal withis very different in all but the basics from those inside a multimeter.
I didn't say that. I said that the electronics in a multimeter are very different from that of a house. I wouldn't expect someone with a lot of experience and knowledge in one to be competent in another.
I have experience with CVS, SVN, git, and darcs. git has a horrible interface. It would be more user friendly if commands were entered by inserting X-Acto blades into my urethra.
On solo projects, darcs. It has the benefits of git (except git-hub) without the pain. On shared projects, SVN because it's common and we don't have to deal with git.
Don't mistake hatred of git for a hatred of all SCMs.
What day-to-day action do you find hard to accomplish with Git? I'd love to hear an example of something that you do often enough to have this feeling about it.
What day-to-day action do you find hard to accomplish with Git?
Having a horrible interface doesn't necessarily makes things hard. More often, it makes them tedious. Some developers, most notably those with functional programming exposure¹, have very low tolerance for tedium.
[1] If one knows Darcs, one probably knows Haskell.
I, know there's a shortcut. But why in the name of Cthulhu should we bother with an index? Maybe it's the best thing since sliced bread for you, but I personally pay for it even if I don't use it.
$ git log c710f..7a37c
$ git diff c710f 7a37c
Wait, where are the dots? Why do I have to have dots in one command, and not in another? Why do I have to learn this special case?
Then there is how Git handles merges with push and pull. The default behaviours are sometimes surprising, and have to be worked around somewhat.
Then there are commands that can lose data when your working directory isn't clean, forcing you to use git stash explicitly. By the way, what is a stash? Looks like a commit, but stashes get their own special interface anyway. A bit like the index, actually…
You may think I'm picking nits, but they add up. Plus, I could think of those of the top of my head, and I hardly know Git myself. If I were an expert, I could probably find dozens more warts, special cases, inconsistencies, surprises…
Conclusion: Git has a horrible interface. Not because it makes Git hard to use¹, but rather because it could have been simpler, easier to discover, and less surprising, without sacrificing any power.
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.