cli.fail

Practice this fail.

A branch of your own.

Git · Restart as often as you like

Read the error, choose a command, and learn
why it works. Nothing runs on your machine.

Browse all practice ↗

Git · Beginner

The working tree is clean. The local branch feature/search does not exist. Create it from the current commit and switch to it.

A branch of your own.

$ git branch --show-current

main

Which command creates and enters feature/search?

3 attempts remaining

Read why this fix works

A branch of your own.

git switch -c feature/search

git switch -c creates a new branch at the current commit and checks it out. Plain git branch feature/search would create the branch without switching to it.

Practice rounds do not affect the daily score or local streak. Try today’s challenge, or choose another scenario.

Copy your result