News for hackers. Stuff that matters.
Re:Highlights from Git 2.23 by wodenokoto on Saturday August 17, 2019 @04:12AM (#20722851)
But I want to switch to my new branch. One of these commands will have to do double duty.

Either switch/checkout will create or branch will switch.

I don’t see why choosing one for double duty is inherently worse than the other.

But I do consider your proposal of `git branch —create` as a poor command for create and switch branch.

Re:Highlights from Git 2.23 by masklinn on Saturday August 17, 2019 @08:57AM (#20723795)
FWIW in their proposal `git branch -c` would be `git branch --checkout` not `git branch --create`, which is what `git branch <name>` does.

The `git checkout -b` and `git switch -c` docs specifically note that they're shortcuts for going a git branch then a git checkout/switch.