$ ./guess_the_languageGit
Git · easy · #7

What does this command do?

git switch -c feature
  1. Creates feature without switching
  2. Copies the current branch to main
  3. Creates feature and switches to it
  4. Switches to an existing feature only
-c creates the branch at the current commit and checks it out in one step.
Play Git ▸