3 ms·
> …will overwrite any local modifications you may have to foo.c without asking. *NIX commands do things without asking. Your computer serves you, not the other
by steveklabnik 17y ago
> …will overwrite any local modifications you may have to foo.c without asking.
*NIX commands do things without asking. Your computer serves you, not the other way around. If I wanted my computer to double check everything that I do, I'd run Windows.
"(y/n/a)" just leads to awkward shell scripts.
- mhansen 17y agoPut a '-f' in your shell script, to force the overwrite
- steveklabnik 17y agoWhy don't you put a '--double-check-my-command' on yours?
- mey 17y agoThere is such a thing are reasonable defaults. This is an issue of command lines as interfaces and as tool integration points. You have reasonable defaults for both audiences. (My preference is the err on the side of the human interaction because CPU's are cheap)
- jwhite 17y agoGit is unashamedly a power tool, for power users. Git checkout seems so natural to me in the way it functions, and I use it so often, that it would annoy the hell out of me if I had to force it or answer a y/n prompt every time I used it. What you think of as intuitive is not universal. Your reasonable defaults are unreasonable to me. This seems to be a problem of audience. Git can be challenging to learn, but it's not aimed at learners. It's aimed at power users. As others have pointed out, there are other front-ends to git. You don't have to use the default porcelain.
- mey 17y agoFair enough