|
|
|
|
|
by kissgyorgy
2496 days ago
|
|
This is still far from ideal. "git switch" and "git checkout" should not be able to create a new branch. It clearly should be the "git branch" subcommand's responsibility, because "You want to do something with a branch". It would be two commands to create and checkout a new branch, but less confusion. You can use your git alias anyway. But a shortcut for "git branch -c" would be better if you want to keep the "create and switch" shortcut IMO. |
|
For git branch -c one could say that the "branch" command should not do checkout-business.