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.
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?
Fixed. By hand.
git mv docs.txt guide.txtgit 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 does not affect your daily score or streak.