Search code examples
gitgit-stash

What's the difference between "git stash save" and "git stash push"?


When should I use git stash save instead of git stash push and vice-versa?


Solution

  • git stash save accepts a single non-option argument — the stash message.

    git stash push accepts the message with option -m and accepts a list of files to stash as arguments.