cli.fail

Practice this fail.

New name. Same file.

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

Tracked docs.txt exists, guide.txt does not, and the working tree is clean. Rename the file and stage that move.

New name. Same file.

$ git status --short

(clean working tree)

How do you rename docs.txt to guide.txt and update the index?

3 attempts remaining

Read why this fix works

New name. Same file.

git mv docs.txt guide.txt

git mv moves the working file and updates the index. Git detects renames from content similarity when presenting history; the command is a convenient way to stage this move.

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

Copy your result