What does this command do?
git switch -c feature
- Creates
featurewithout switching - Copies the current branch to
main - Creates
featureand switches to it - Switches to an existing
featureonly
-c creates the branch at the current commit and checks it out in one step.