cli.fail

Practice this fail.

The repository has left the chat.

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 ↗

Your shell is in /workspace. The existing Git repository is at /workspace/demo.

The repository has left the chat.

$ pwd

/workspace

$ git status

fatal: not a git repository

How do you inspect that repository without changing the shell’s directory?

3 attempts remaining

Read why this fix works

The repository has left the chat.

git -C ./demo status

Git’s -C option runs the command as if it had started in the specified directory. git -C ./demo status inspects the repository under demo while leaving your shell’s current directory unchanged.

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

Copy your result