News for hackers. Stuff that matters.
Re:Highlights from Git 2.23 by int0x80 on Saturday August 17, 2019 @05:37AM (#20723085)
I disagree. I found git checkout -b very convenient an intuitive way to say "create and checkout this branch".

For git branch -c one could say that the "branch" command should not do checkout-business.

Re:Highlights from Git 2.23 by sametmax on Saturday August 17, 2019 @07:54AM (#20723540)
I should be a separate cmd. It's such a common operation, and it's a huge noob trap.
Re:Highlights from Git 2.23 by nemetroid on Saturday August 17, 2019 @09:33AM (#20723948)
The reason it's a noob trap isn't that the two operations should be separate.

The issue is that "-b" (mnemonic for "branch") in no way suggests that it creates a new branch. Since checkout does so many different things, it would be reasonable to guess that -b limits the command to perform the "branch" action (i.e. switch to a branch). Git-switch doesn't have this issue.