git stash push -m "work in progress" in a repository with unstaged changes. What will git stash list show as the top entry?The git stash push -m "message" command creates a stash with a message. The stash list shows entries starting with 'WIP on' plus the branch name and the message.
git stash push -m without providing a message?The -m option requires a message string. Running without a message causes git to report 'error: switch `m' requires a value'.
git stash push -m "message" creates a named stash. Then git stash apply stash@{0} applies the latest stash without removing it.
git stash push -m fail with 'unknown option' error?git stash push -m "fix bug" but get an error: error: unknown option '-m'. What is the likely cause?The -m option for git stash push was added in git 2.13. Older versions do not recognize it and show 'unknown option'.
Including the branch name, a short description, and the date in stash messages helps everyone understand what the stash is about and when it was created.
