cli.fail

Practice this fail.

A branch needs directions.

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 · Intermediate

The current branch is feature/search, and origin/feature/search already exists after a fetch. Set its upstream without pushing.

A branch needs directions.

$ git branch -vv

* feature/search a1b2c3d Search UI

How do you set the current branch’s upstream?

3 attempts remaining

Read why this fix works

A branch needs directions.

git branch --set-upstream-to=origin/feature/search

branch --set-upstream-to associates the current local branch with an existing upstream reference. It changes local tracking configuration without transmitting commits.

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

Copy your result