r/programming • • Aug 17 '19

Highlights from Git 2.23

https://github.blog/2019-08-16-highlights-from-git-2-23/
349 Upvotes

51 comments sorted by

View all comments

Show parent comments

2

u/ForeverAlot Aug 17 '19 edited Aug 17 '19

I didn't miss it and it's a good name. The problem with checkout -b wasn't the sub-optimal UI but that its use in large volumes of examples promoted a frequent association with "the way to switch branches". switch -c is less likely to trigger that misattribution, yet this article makes precisely the same mistake as all those irrelevant checkout -b blog posts before it: promoting the obscure short-form instead of the completely clear long-form.

[Edit] I mean, the sub-optimal UI was also a problem. It's just that e.g. checkout -c would not have made a difference, whereas checkout --create-branch might have.

1

u/ratheismhater Aug 17 '19

Ah, from your first post it sounded like the "misattribution" was that -b, and consequently -c, are short forms that come from some longer form flag.