3 ms·
> those usages are semantically different, and consistently so They're very close to the same syntax, and the fact that they're significantly different just sh
by NateDad 12y ago
> those usages are semantically different, and consistently so
They're very close to the same syntax, and the fact that they're significantly different just shows again that the CLI is a mess. If they're so different, they should have significantly different syntax. "space versus slash" is not significantly different. I'm sure I'm not the first person to create a new branch called "upstream/master" :P
The problem with git branch versus git checkout -b is that 99% of the time, what people want to do is create a branch and switch to it. The "create a branch and don't switch to it" could just be a flag on git branch. It DEFINITELY should not be two completely different commands.
> it's pretty obvious if you've taken half an hour to understand the underlying data model of Git
This is the biggest red flag about git's CLI. I shouldn't need to know the implementation to use the UI.
- mnem 12y agoI have a good grasp of git CLI but bugger all understanding of it's internals, so you certainly don't need to know. It seems fairly likely that what is considered a reasonable interface or a bad interface has a high level of subjectivity. Why bother getting bogged down with such debate? If you dislike git, use something else. If git is forced upon you, write some simple wrappers which provide the interface you want for your top few most used operations, or ask for help to do so from the people forcing you to use it. Or just hang around hacker news and complain without anything changing. It's certainly my favourite method of avoiding work :)
- NotSammyHagar 12y agoI can't understand why they haven't tried to fix their CLI syntax. Besides having to remember when to do origin <space> branch and origin/branch, there is also how do you set the upstream branch, there's a couple of ways there. And then creating a branch and switching to it. Is it 'git branch -c foobar' or 'git checkout -c foobar'. Was it -c for create? why not allow it on both? And its so easy to fix these things.
- spb 12y ago> This is the biggest red flag about git's CLI. I shouldn't need to know the implementation to use the UI. This speaks to a fundamental misunderstanding of the nature of Git. You need to know the model of anything to be able to use it properly- you've mixed up Git's model with its "implementation" (probably because Git's model is so lightweight and exposes a lot of its fundamental workings, [as is right for proper usability][1]). This is like saying you shouldn't have to know what files and folders are to open a document in Word, Yes, you should. [1]: http://en.wikipedia.org/wiki/Seven_stages_of_action#Usage_as_Design_Aids http://en.wikipedia.org/wiki/Seven_stages_of_action#Usage_as...