cli.fail

Practice this fail.

The untracked guest.

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

A repository with commits has tracked edits and an untracked notes.txt. Save both in a stash. There are no ignored files to save.

The untracked guest.

$ git status --short

M app.js

?? notes.txt

How do you stash tracked edits and untracked files together?

3 attempts remaining

Read why this fix works

The untracked guest.

git stash push -u

The -u / --include-untracked option includes untracked files along with tracked changes and cleans those saved files from the working tree. Ignored files are excluded. Inspect the stash before relying on it as your only copy.

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

Copy your result