$ ./guess_the_languageGit
Git · medium · #33

What does the last command print?

$ git status --short
 M f
?? n.txt
$ git stash
$ git status --short
  1. (no output)
  2. ?? n.txt
  3. M f
  4. M f and ?? n.txt
By default git stash saves only tracked changes, so the untracked file stays. Use git stash -u to include untracked files.
Play Git ▸